sikanhe / apollo-tracing-elixir

Apollo Tracing middleware for Absinthe
114 stars 8 forks source link

Bit of confusion regarding middleware vs plug pipeline #5

Open bjunc opened 6 years ago

bjunc commented 6 years ago

If I only add tracing to the absinthe pipeline, it works. If I add tracing to the absinthe pipeline and add use ApolloTracing to my schema, I get the error below:

** (BadStructError) expected a struct named ApolloTracing.Schema.Execution.Resolver, got: %{duration: 4000, ...

My Absinthe related deps are:

{:absinthe, "~> 1.4.0-beta.3", override: true},
{:absinthe_plug, "~> 1.4.0-beta.2"},
{:absinthe_ecto, "~> 0.1.2"},
{:apollo_tracing, git: "https://github.com/sikanhe/apollo-tracing-elixir.git"}

Maybe worth noting, I couldn't get apollo_tracing to install without referencing the github repo directly. The absinthe override is to due absinthe_ecto

sikanhe commented 6 years ago

@bjunc Thanks for reporting this, will take a look at this tonight.