Struct async_graphql_extension_apollo_tracing::ApolloTracing[][src]

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

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

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

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 brevz-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

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