[−][src]Struct opentelemetry_otlp::OtlpPipelineBuilder
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]
pub fn default() -> OtlpPipelineBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for OtlpPipelineBuilder
[src]
impl Send for OtlpPipelineBuilder
[src]
impl Sync for OtlpPipelineBuilder
[src]
impl Unpin for OtlpPipelineBuilder
[src]
impl !UnwindSafe for OtlpPipelineBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FutureExt for T
[src]
pub fn with_context(self, otel_cx: Context) -> WithContext<Self>
[src]
pub fn with_current_context(self) -> WithContext<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,