[][src]Struct opentelemetry_otlp::OtlpPipelineBuilder

pub struct OtlpPipelineBuilder { /* fields omitted */ }

Recommended configuration for an Otlp exporter pipeline.

Examples

fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync + 'static>> {
    let (tracer, _uninstall) = opentelemetry_otlp::new_pipeline().install()?;

    Ok(())
}

Implementations

impl OtlpPipelineBuilder[src]

pub fn with_endpoint<T: Into<String>>(mut self: Self, endpoint: T) -> Self[src]

Set the address of the OTLP collector. If not set, the default address is used.

pub fn with_protocol(mut self: Self, protocol: Protocol) -> Self[src]

Set the protocol to use when communicating with the collector.

pub fn with_tls_config(mut self: Self, tls_config: ClientTlsConfig) -> Self[src]

Set the TLS settings for the collector endpoint.

pub fn with_metadata(mut self: Self, metadata: MetadataMap) -> Self[src]

Set custom metadata entries to send to the collector.

pub fn with_timeout(mut self: Self, timeout: Duration) -> Self[src]

Set the timeout to the collector.

pub fn with_trace_config(mut self: Self, trace_config: Config) -> Self[src]

Set the trace provider configuration.

pub fn install(mut self: Self) -> Result<(Tracer, Uninstall), TraceError>[src]

Install the OTLP exporter pipeline with the recommended defaults.

Trait Implementations

impl Debug for OtlpPipelineBuilder[src]

impl Default for OtlpPipelineBuilder[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> Instrument for T[src]

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

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

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

impl<T> WithSubscriber for T[src]