Giter VIP home page Giter VIP logo

band's People

Contributors

gregmefford avatar jeffweiss avatar keathley avatar lancehalvorsen avatar scrogson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

band's Issues

phoenix controller key doesn't exist for cors requests

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

Plug instrumenter

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.

Metrix fails to compile as a dependency without Absinthe

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.