Struct opentelemetry_otlp::OtlpLogPipeline
source · pub struct OtlpLogPipeline { /* private fields */ }
Available on crate feature
logs
only.Expand description
Recommended configuration for an OTLP exporter pipeline.
Implementations§
source§impl OtlpLogPipeline
impl OtlpLogPipeline
sourcepub fn with_exporter<B: Into<LogExporterBuilder>>(self, pipeline: B) -> Self
pub fn with_exporter<B: Into<LogExporterBuilder>>(self, pipeline: B) -> Self
Set the OTLP log exporter builder.
sourcepub fn with_log_config(self, log_config: Config) -> Self
pub fn with_log_config(self, log_config: Config) -> Self
Set the log provider configuration.
sourcepub fn install_simple(self) -> Result<Logger, LogError>
pub fn install_simple(self) -> Result<Logger, LogError>
Install the configured log exporter.
Returns a Logger
with the name opentelemetry-otlp
and the current crate version.
sourcepub fn install_batch<R: RuntimeChannel<BatchMessage>>(
self,
runtime: R
) -> Result<Logger, LogError>
pub fn install_batch<R: RuntimeChannel<BatchMessage>>( self, runtime: R ) -> Result<Logger, LogError>
Install the configured log exporter and a batch span processor using the specified runtime.
Returns a Logger
with the name opentelemetry-otlp
and the current crate version.
Trait Implementations§
source§impl Debug for OtlpLogPipeline
impl Debug for OtlpLogPipeline
source§impl Default for OtlpLogPipeline
impl Default for OtlpLogPipeline
source§fn default() -> OtlpLogPipeline
fn default() -> OtlpLogPipeline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OtlpLogPipeline
impl Send for OtlpLogPipeline
impl !Sync for OtlpLogPipeline
impl Unpin for OtlpLogPipeline
impl !UnwindSafe for OtlpLogPipeline
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>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request