Struct opentelemetry_jaeger::PipelineBuilder[][src]

pub struct PipelineBuilder { /* fields omitted */ }

Jaeger exporter builder

Implementations

impl PipelineBuilder[src]

pub fn with_agent_endpoint<T: ToSocketAddrs>(self, agent_endpoint: T) -> Self[src]

Assign the agent endpoint.

pub fn with_instrumentation_library_tags(self, export: bool) -> Self[src]

Config whether to export information of instrumentation library.

pub fn with_collector_endpoint<T>(self, collector_endpoint: T) -> Self where
    Uri: TryFrom<T>,
    <Uri as TryFrom<T>>::Error: Into<InvalidUri>, 
[src]

This is supported on crate features collector_client or wasm_collector_client only.

Assign the collector endpoint.

E.g. “http://localhost:14268/api/traces”

pub fn with_collector_username<S: Into<String>>(
    self,
    collector_username: S
) -> Self
[src]

Assign the collector username

pub fn with_collector_password<S: Into<String>>(
    self,
    collector_password: S
) -> Self
[src]

Assign the collector password

pub fn with_service_name<T: Into<String>>(self, service_name: T) -> Self[src]

Assign the process service name.

pub fn with_tags<T: IntoIterator<Item = KeyValue>>(self, tags: T) -> Self[src]

Assign the process service tags.

pub fn with_max_packet_size(self, max_packet_size: usize) -> Self[src]

Assign the max packet size in bytes. Jaeger defaults is 65000.

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

Assign the SDK config for the exporter pipeline.

pub fn with_http_client<T: HttpClient + 'static>(self, client: T) -> Self[src]

Assign the http client to use

pub fn install_simple(self) -> Result<Tracer, TraceError>[src]

Install a Jaeger pipeline with a simple span processor.

pub fn install_batch<R: Runtime>(self, runtime: R) -> Result<Tracer, TraceError>[src]

Install a Jaeger pipeline with a batch span processor using the specified runtime.

pub fn build_simple(self) -> Result<TracerProvider, TraceError>[src]

Build a configured sdk::trace::TracerProvider with a simple span processor.

pub fn build_batch<R: Runtime>(
    self,
    runtime: R
) -> Result<TracerProvider, TraceError>
[src]

Build a configured sdk::trace::TracerProvider with a batch span processor using the specified runtime.

pub fn init_exporter(self) -> Result<Exporter, TraceError>[src]

Initialize a new exporter.

This is useful if you are manually constructing a pipeline.

Trait Implementations

impl Debug for PipelineBuilder[src]

impl Default for PipelineBuilder[src]

fn default() -> Self[src]

Return the default Exporter Builder.

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> Same<T> for T

type Output = T

Should always be Self

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]