pub struct Builder { /* private fields */ }
This is supported on crate feature
trace
only.Expand description
Builder for provider attributes.
Implementations
The SpanExporter
that this provider should use.
pub fn with_batch_exporter<T: SpanExporter + 'static, R: TraceRuntime>(
self,
exporter: T,
runtime: R
) -> Self
pub fn with_batch_exporter<T: SpanExporter + 'static, R: TraceRuntime>(
self,
exporter: T,
runtime: R
) -> Self
The SpanExporter
setup using a default BatchSpanProcessor
that this provider should use.
The SpanProcessor
that this provider should use.
The sdk Config
that this provider will use.
Return the clone of sdk provided resource.
See https://github.com/open-telemetry/opentelemetry-specification/blob/v1.8.0/specification/resource/sdk.md#sdk-provided-resource-attributes for details.
Create a new provider from this configuration.