Struct async_graphql::extensions::OpenTelemetry[][src]

pub struct OpenTelemetry<T, U> { /* fields omitted */ }

OpenTelemetry extension

Implementations

impl<T> OpenTelemetry<T, ()>[src]

pub fn new(tracer: T) -> OpenTelemetry<T, ()> where
    T: Tracer + Send + Sync + Clone
[src]

Use tracer to create an OpenTelemetry extension.

pub fn with_uninstall<U>(self, uninstall: U) -> OpenTelemetry<T, U> where
    U: Send + Sync + 'static, 
[src]

Attach an Uninstall instance to this extension.

Trait Implementations

impl<T: Default, U: Default> Default for OpenTelemetry<T, U>[src]

impl<T: Tracer + Send + Sync + Clone, U: Send + Sync + 'static> ExtensionFactory for OpenTelemetry<T, U>[src]

Auto Trait Implementations

impl<T, U> RefUnwindSafe for OpenTelemetry<T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<T, U> Send for OpenTelemetry<T, U> where
    T: Send,
    U: Send

impl<T, U> Sync for OpenTelemetry<T, U> where
    T: Sync,
    U: Sync

impl<T, U> Unpin for OpenTelemetry<T, U> where
    T: Unpin,
    U: Unpin

impl<T, U> UnwindSafe for OpenTelemetry<T, U> where
    T: UnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,