Struct opentelemetry_jaeger::PipelineBuilder
source · [−]pub struct PipelineBuilder { /* private fields */ }
Expand description
Jaeger exporter builder
Implementations
sourceimpl PipelineBuilder
impl PipelineBuilder
sourcepub fn with_agent_endpoint<T: ToSocketAddrs>(self, agent_endpoint: T) -> Self
pub fn with_agent_endpoint<T: ToSocketAddrs>(self, agent_endpoint: T) -> Self
Assign the agent endpoint.
Config whether to export information of instrumentation library.
sourcepub fn with_service_name<T: Into<String>>(self, service_name: T) -> Self
pub fn with_service_name<T: Into<String>>(self, service_name: T) -> Self
Assign the process service name.
Assign the process service tags.
sourcepub fn with_max_packet_size(self, max_packet_size: usize) -> Self
pub fn with_max_packet_size(self, max_packet_size: usize) -> Self
Assign the max packet size in bytes. Jaeger defaults is 65000.
sourcepub fn with_trace_config(self, config: Config) -> Self
pub fn with_trace_config(self, config: Config) -> Self
Assign the SDK config for the exporter pipeline.
sourcepub fn install_simple(self) -> Result<Tracer, TraceError>
pub fn install_simple(self) -> Result<Tracer, TraceError>
Install a Jaeger pipeline with a simple span processor.
sourcepub fn install_batch<R: JaegerTraceRuntime>(
self,
runtime: R
) -> Result<Tracer, TraceError>
pub fn install_batch<R: JaegerTraceRuntime>(
self,
runtime: R
) -> Result<Tracer, TraceError>
Install a Jaeger pipeline with a batch span processor using the specified runtime.
sourcepub fn build_simple(self) -> Result<TracerProvider, TraceError>
pub fn build_simple(self) -> Result<TracerProvider, TraceError>
Build a configured sdk::trace::TracerProvider
with a simple span processor.
sourcepub fn build_batch<R: JaegerTraceRuntime>(
self,
runtime: R
) -> Result<TracerProvider, TraceError>
pub fn build_batch<R: JaegerTraceRuntime>(
self,
runtime: R
) -> Result<TracerProvider, TraceError>
Build a configured sdk::trace::TracerProvider
with a batch span processor using the
specified runtime.
sourcepub fn init_sync_exporter(self) -> Result<Exporter, TraceError>
pub fn init_sync_exporter(self) -> Result<Exporter, TraceError>
Initialize a new simple exporter.
This is useful if you are manually constructing a pipeline.
sourcepub fn init_async_exporter<R: JaegerTraceRuntime>(
self,
runtime: R
) -> Result<Exporter, TraceError>
pub fn init_async_exporter<R: JaegerTraceRuntime>(
self,
runtime: R
) -> Result<Exporter, TraceError>
Initialize a new exporter.
This is useful if you are manually constructing a pipeline.