Struct async_graphql_extension_apollo_tracing::ApolloTracing[][src]

pub struct ApolloTracing { /* fields omitted */ }
Expand description

Apollo Tracing Extension to send traces to Apollo Studio The extension to include to your async_graphql instance to connect with Apollo Studio.

https://www.apollographql.com/docs/studio/setup-analytics/#adding-support-to-a-third-party-server-advanced

Apollo Tracing works by creating traces from GraphQL calls, which contains extra data about the request being processed. These traces are then batched sent to Apollo Studio.

The extension will start a separate function on a separate thread which will aggregate traces and batch send them.

To add additional data to your metrics, you should add a ApolloTracingDataExt to your query_data when you process a query with async_graphql.

Implementations

We initialize the ApolloTracing Extension by starting our aggregator async function which will receive every traces and send them to the Apollo Studio Ingress for processing

  • autorization_token - Token to send metrics to apollo studio.
  • hostname - Hostname like yourdomain-graphql-1.io
  • graph_ref - @ Graph reference with variant
  • release_name - Your release version or release name from Git for example
  • batch_target - The number of traces to batch, it depends on your traffic, if you have 60 request per minutes, set it to 20.

Trait Implementations

Create an extended instance.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more