pub struct PipelineBuilder<W: Write> { /* private fields */ }
Available on crate feature
trace
only.Expand description
Pipeline builder
Implementations§
Source§impl<W: Write> PipelineBuilder<W>
impl<W: Write> PipelineBuilder<W>
Sourcepub fn with_pretty_print(self, pretty_print: bool) -> Self
pub fn with_pretty_print(self, pretty_print: bool) -> Self
Specify the pretty print setting.
Sourcepub fn with_trace_config(self, config: Config) -> Self
pub fn with_trace_config(self, config: Config) -> Self
Assign the SDK trace configuration.
Sourcepub fn with_writer<T: Write>(self, writer: T) -> PipelineBuilder<T>
pub fn with_writer<T: Write>(self, writer: T) -> PipelineBuilder<T>
Specify the writer to use.
Source§impl<W> PipelineBuilder<W>
impl<W> PipelineBuilder<W>
Sourcepub fn install_simple(self) -> Tracer
pub fn install_simple(self) -> Tracer
Install the stdout exporter pipeline with the recommended defaults.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for PipelineBuilder<W>where
W: Freeze,
impl<W> !RefUnwindSafe for PipelineBuilder<W>
impl<W> Send for PipelineBuilder<W>where
W: Send,
impl<W> Sync for PipelineBuilder<W>where
W: Sync,
impl<W> Unpin for PipelineBuilder<W>where
W: Unpin,
impl<W> !UnwindSafe for PipelineBuilder<W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.