Skip to content

Bit of confusion regarding middleware vs plug pipeline #5

@bjunc

Description

@bjunc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions