[][src]Struct observability::Config

pub struct Config {
    pub process: bool,
    pub file: bool,
    pub span_name: bool,
    pub require_span: bool,
}

Configuration for open telemetry tracing. These can all be configured by setting the OPEN_TEL='process:true,file:false'. They all have default settings.

Fields

process: bool

Propagate the name of the process running on the sender side of the boundary crossing in the context and output when calling spawn_context!(). [Default: false]

file: bool

Propagate the name of the file and line number of the sender side of the boundary crossing in the context and output when calling spawn_context!(). [Default: false]

span_name: bool

Propagate the name of the span name of the sender side of the boundary crossing in the context and output when calling spawn_context!(). [Default: true]

require_span: bool

Require there to be a span enabled for the sending side of the boundary crossing. [Default: true]

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

impl From<Option<OsString>> for Config[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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