letoteteam / band Goto Github PK
View Code? Open in Web Editor NEWIts just a bunch of elixir instrumenters
License: Apache License 2.0
Its just a bunch of elixir instrumenters
License: Apache License 2.0
On cors requests metrix is failing because its trying to get the phoenix controller and there isn't one. here's the stack trace:
2018-01-04T00:32:49.471270+00:00 app[web.2]: ** (KeyError) key :phoenix_controller not found in: %{CatalogInterface.Web
.Router => {[], %{Absinthe.Plug => []}}, :absinthe => %{context: %{authorized: true}}, :guardian_default_claims => {:er
ror, %CaseClauseError{term: {:error, {:badarg, ["f2yHmtR3rknVCh9qXdmh"]}}}}, :guardian_default_resource => nil, :phoeni
x_endpoint => CatalogInterface.Web.Endpoint, :phoenix_format => "json", :phoenix_layout => false, :phoenix_pipelines =>
[:graphql], :phoenix_router => CatalogInterface.Web.Router, :phoenix_template => "500.json", :phoenix_view => CatalogI
nterface.Web.ErrorView, :plug_route => #Function<3.45792298/1 in CatalogInterface.Plug.CORS.do_match/4>, :plug_session_
fetch => #Function<1.112984571/1 in Plug.Session.fetch_session/1>}
2018-01-04T00:32:49.471271+00:00 app[web.2]: (metrix) lib/metrix/instrumenters/phoenix.ex:46: Metrix.Instrumenters.
Phoenix.controller/1
2018-01-04T00:32:49.471272+00:00 app[web.2]: (metrix) lib/metrix/instrumenters/phoenix.ex:20: Metrix.Instrumenters.
Phoenix.phoenix_controller_render/3
2018-01-04T00:32:49.471273+00:00 app[web.2]: (catalog_interface) lib/catalog_interface/web/endpoint.ex:1: CatalogIn
terface.Web.Endpoint."-instrument/4-after$^3/0-0-"/2
2018-01-04T00:32:49.471274+00:00 app[web.2]: (catalog_interface) lib/catalog_interface/web/endpoint.ex:1: CatalogIn
terface.Web.Endpoint.instrument/4
2018-01-04T00:32:49.471275+00:00 app[web.2]: (phoenix) lib/phoenix/controller.ex:740: Phoenix.Controller.do_render/
4
2018-01-04T00:32:49.471276+00:00 app[web.2]: (phoenix) lib/phoenix/endpoint/render_errors.ex:60: Phoenix.Endpoint.R
enderErrors.__catch__/5
2018-01-04T00:32:49.471277+00:00 app[web.2]: (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Ha
ndler.upgrade/4
2018-01-04T00:32:49.471278+00:00 app[web.2]: (cowboy) /tmp/build_c9fd8593ab98d67694411ff09203e92a/LeToteTeam-catalo
It would be good to capture a plug pipeline instrumenter so we can capture information about the specific http requests that we don't get from the phoenix instrumenter.
When using Metrix as a dependency, it will fail to compile unless the project also has Absinthe, despite Absinthe being marked as an optional dependency.
$ mix compile
==> statix
Compiling 3 files (.ex)
Generated statix app
==> metrix
Compiling 7 files (.ex)
== Compilation error in file lib/metrix/instrumenters/absinthe.ex ==
** (CompileError) lib/metrix/instrumenters/absinthe.ex:10: Absinthe.Resolution.__struct__/0 is undefined, cannot expand struct Absinthe.Resolution
lib/metrix/instrumenters/absinthe.ex:10: (module)
could not compile dependency :metrix, "mix compile" failed. You can recompile this dependency with "mix deps.compile metrix", update it with "mix deps.update metrix" or clean it with "mix deps.clean metrix"
I created a quick repro repo: https://github.com/jeffweiss/metrix_user
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.