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