pub struct Tracing;
Expand description
Tracing extension
§References
https://crates.io/crates/tracing
§Examples
useasync_graphql::{extensions::Tracing,*};#[derive(SimpleObject)]structQuery { value: i32,}letschema = Schema::build(Query { value:100}, EmptyMutation, EmptySubscription) .extension(Tracing) .finish();schema.execute(Request::new("{ value }")).await;
Trait Implementations§
Auto Trait Implementations§
implFreeze forTracing
implRefUnwindSafe forTracing
implSend forTracing
implSync forTracing
implUnpin forTracing
implUnwindSafe forTracing
Blanket Implementations§
Source§impl<T>BorrowMut<T> for Twhere T: ?Sized,
impl<T>BorrowMut<T> for Twhere T: ?Sized,
Source§fnborrow_mut(&mut self) ->&mut T
fnborrow_mut(&mut self) ->&mut T
Mutably borrows from an owned value.Read more
Source§impl<T>FmtForward for T
impl<T>FmtForward for T
Source§fnfmt_binary(self) ->FmtBinary<Self>where Self:Binary,
fnfmt_binary(self) ->FmtBinary<Self>where Self:Binary,
Causes
self
to use itsBinary
implementation whenDebug
-formatted.Source§fnfmt_display(self) ->FmtDisplay<Self>where Self:Display,
fnfmt_display(self) ->FmtDisplay<Self>where Self:Display,
Causes
self
to use itsDisplay
implementation whenDebug
-formatted.Source§fnfmt_lower_exp(self) ->FmtLowerExp<Self>where Self:LowerExp,
fnfmt_lower_exp(self) ->FmtLowerExp<Self>where Self:LowerExp,
Causes
self
to use itsLowerExp
implementation whenDebug
-formatted.Source§fnfmt_lower_hex(self) ->FmtLowerHex<Self>where Self:LowerHex,
fnfmt_lower_hex(self) ->FmtLowerHex<Self>where Self:LowerHex,
Causes
self
to use itsLowerHex
implementation whenDebug
-formatted.Source§fnfmt_octal(self) ->FmtOctal<Self>where Self:Octal,
fnfmt_octal(self) ->FmtOctal<Self>where Self:Octal,
Causes
self
to use itsOctal
implementation whenDebug
-formatted.Source§fnfmt_pointer(self) ->FmtPointer<Self>where Self:Pointer,
fnfmt_pointer(self) ->FmtPointer<Self>where Self:Pointer,
Causes
self
to use itsPointer
implementation whenDebug
-formatted.Source§fnfmt_upper_exp(self) ->FmtUpperExp<Self>where Self:UpperExp,
fnfmt_upper_exp(self) ->FmtUpperExp<Self>where Self:UpperExp,
Causes
self
to use itsUpperExp
implementation whenDebug
-formatted.Source§fnfmt_upper_hex(self) ->FmtUpperHex<Self>where Self:UpperHex,
fnfmt_upper_hex(self) ->FmtUpperHex<Self>where Self:UpperHex,
Causes
self
to use itsUpperHex
implementation whenDebug
-formatted.Source§impl<T>FutureExt for T
impl<T>FutureExt for T
Source§fnwith_context(self, otel_cx:Context) ->WithContext<Self>ⓘ
fnwith_context(self, otel_cx:Context) ->WithContext<Self>ⓘ
Source§fnwith_current_context(self) ->WithContext<Self>ⓘ
fnwith_current_context(self) ->WithContext<Self>ⓘ
Source§impl<T>Instrument for T
impl<T>Instrument for T
Source§fninstrument(self, span:Span) ->Instrumented<Self>ⓘ
fninstrument(self, span:Span) ->Instrumented<Self>ⓘ
Source§fnin_current_span(self) ->Instrumented<Self>ⓘ
fnin_current_span(self) ->Instrumented<Self>ⓘ
Source§impl<T>Instrument for T
impl<T>Instrument for T
Source§fninstrument(self, span:Span) ->Instrumented<Self>ⓘ
fninstrument(self, span:Span) ->Instrumented<Self>ⓘ
Source§fnin_current_span(self) ->Instrumented<Self>ⓘ
fnin_current_span(self) ->Instrumented<Self>ⓘ
Source§impl<T>IntoEither for T
impl<T>IntoEither for T
Source§fninto_either(self, into_left:bool) ->Either<Self, Self>ⓘ
fninto_either(self, into_left:bool) ->Either<Self, Self>ⓘ
Converts
self
into aLeft
variant ofEither<Self, Self>
ifinto_left
istrue
.Convertsself
into aRight
variant ofEither<Self, Self>
otherwise.Read moreSource§fninto_either_with<F>(self, into_left: F) ->Either<Self, Self>ⓘ
fninto_either_with<F>(self, into_left: F) ->Either<Self, Self>ⓘ
Converts
self
into aLeft
variant ofEither<Self, Self>
ifinto_left(&self)
returnstrue
.Convertsself
into aRight
variant ofEither<Self, Self>
otherwise.Read moreSource§impl<T>Pipe for Twhere T: ?Sized,
impl<T>Pipe for Twhere T: ?Sized,
Source§fnpipe<R>(self, func: implFnOnce(Self) -> R) -> Rwhere Self:Sized,
fnpipe<R>(self, func: implFnOnce(Self) -> R) -> Rwhere Self:Sized,
Pipes by value. This is generally the method you want to use.Read more
Source§fnpipe_ref<'a, R>(&'a self, func: implFnOnce(&'a Self) -> R) -> Rwhere R: 'a,
fnpipe_ref<'a, R>(&'a self, func: implFnOnce(&'a Self) -> R) -> Rwhere R: 'a,
Borrows
self
and passes that borrow into the pipe function.Read moreSource§fnpipe_ref_mut<'a, R>(&'a mut self, func: implFnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,
fnpipe_ref_mut<'a, R>(&'a mut self, func: implFnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function.Read moreSource§fnpipe_borrow<'a, B, R>(&'a self, func: implFnOnce(&'a B) -> R) -> R
fnpipe_borrow<'a, B, R>(&'a self, func: implFnOnce(&'a B) -> R) -> R
Source§fnpipe_borrow_mut<'a, B, R>( &'a mut self, func: implFnOnce(&'a mut B) -> R,) -> R
fnpipe_borrow_mut<'a, B, R>( &'a mut self, func: implFnOnce(&'a mut B) -> R,) -> R
Source§fnpipe_as_ref<'a, U, R>(&'a self, func: implFnOnce(&'a U) -> R) -> R
fnpipe_as_ref<'a, U, R>(&'a self, func: implFnOnce(&'a U) -> R) -> R
Borrows
self
, then passesself.as_ref()
into the pipe function.Source§fnpipe_as_mut<'a, U, R>(&'a mut self, func: implFnOnce(&'a mut U) -> R) -> R
fnpipe_as_mut<'a, U, R>(&'a mut self, func: implFnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passesself.as_mut()
into the pipefunction.Source§fnpipe_deref<'a, T, R>(&'a self, func: implFnOnce(&'a T) -> R) -> R
fnpipe_deref<'a, T, R>(&'a self, func: implFnOnce(&'a T) -> R) -> R
Borrows
self
, then passesself.deref()
into the pipe function.Source§impl<T>Tap for T
impl<T>Tap for T
Source§fntap_borrow<B>(self, func: implFnOnce(&B)) -> Self
fntap_borrow<B>(self, func: implFnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value.Read moreSource§fntap_borrow_mut<B>(self, func: implFnOnce(&mut B)) -> Self
fntap_borrow_mut<B>(self, func: implFnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value.Read moreSource§fntap_ref<R>(self, func: implFnOnce(&R)) -> Self
fntap_ref<R>(self, func: implFnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value.Read moreSource§fntap_ref_mut<R>(self, func: implFnOnce(&mut R)) -> Self
fntap_ref_mut<R>(self, func: implFnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value.Read moreSource§fntap_deref<T>(self, func: implFnOnce(&T)) -> Self
fntap_deref<T>(self, func: implFnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value.Read moreSource§fntap_deref_mut<T>(self, func: implFnOnce(&mut T)) -> Self
fntap_deref_mut<T>(self, func: implFnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value.Read moreSource§fntap_dbg(self, func: implFnOnce(&Self)) -> Self
fntap_dbg(self, func: implFnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.Source§fntap_mut_dbg(self, func: implFnOnce(&mut Self)) -> Self
fntap_mut_dbg(self, func: implFnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in releasebuilds.Source§fntap_borrow_dbg<B>(self, func: implFnOnce(&B)) -> Self
fntap_borrow_dbg<B>(self, func: implFnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in releasebuilds.Source§fntap_borrow_mut_dbg<B>(self, func: implFnOnce(&mut B)) -> Self
fntap_borrow_mut_dbg<B>(self, func: implFnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in releasebuilds.Source§fntap_ref_dbg<R>(self, func: implFnOnce(&R)) -> Self
fntap_ref_dbg<R>(self, func: implFnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in releasebuilds.Source§fntap_ref_mut_dbg<R>(self, func: implFnOnce(&mut R)) -> Self
fntap_ref_mut_dbg<R>(self, func: implFnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in releasebuilds.Source§fntap_deref_dbg<T>(self, func: implFnOnce(&T)) -> Self
fntap_deref_dbg<T>(self, func: implFnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in releasebuilds.