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 - @
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ApolloTracing
impl Send for ApolloTracing
impl Sync for ApolloTracing
impl Unpin for ApolloTracing
impl !UnwindSafe for ApolloTracing
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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