Struct async_graphql::extensions::Tracing [−][src]
pub struct Tracing;
This is supported on crate feature
tracing
only.Expand description
Tracing extension
References
https://crates.io/crates/tracing
Examples
use async_graphql::*; use async_graphql::extensions::Tracing; #[derive(SimpleObject)] struct Query { value: i32, } let schema = Schema::build(Query { value: 100 }, EmptyMutation, EmptySubscription) .extension(Tracing) .finish(); tokio::runtime::Runtime::new().unwrap().block_on(async { schema.execute(Request::new("{ value }")).await; });
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Tracing
impl UnwindSafe for Tracing
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