pub struct DatadogPipelineBuilder { /* private fields */ }
Expand description
Builder for ExporterConfig
struct.
Implementations
sourceimpl DatadogPipelineBuilder
impl DatadogPipelineBuilder
sourcepub fn build_exporter(self) -> Result<DatadogExporter, TraceError>
pub fn build_exporter(self) -> Result<DatadogExporter, TraceError>
Building a new exporter.
This is useful if you are manually constructing a pipeline.
sourcepub fn install_simple(self) -> Result<Tracer, TraceError>
pub fn install_simple(self) -> Result<Tracer, TraceError>
Install the Datadog trace exporter pipeline using a simple span processor.
sourcepub fn install_batch<R: TraceRuntime>(
self,
runtime: R
) -> Result<Tracer, TraceError>
pub fn install_batch<R: TraceRuntime>(
self,
runtime: R
) -> Result<Tracer, TraceError>
Install the Datadog trace exporter pipeline using a batch span processor with the specified runtime.
sourcepub fn with_service_name<T: Into<String>>(self, name: T) -> Self
pub fn with_service_name<T: Into<String>>(self, name: T) -> Self
Assign the service name under which to group traces
sourcepub fn with_agent_endpoint<T: Into<String>>(self, endpoint: T) -> Self
pub fn with_agent_endpoint<T: Into<String>>(self, endpoint: T) -> Self
Assign the Datadog collector endpoint.
The endpoint of the datadog agent, by default it is http://127.0.0.1:8126
.
sourcepub fn with_http_client<T: HttpClient + 'static>(
self,
client: Arc<dyn HttpClient>
) -> Self
pub fn with_http_client<T: HttpClient + 'static>(
self,
client: Arc<dyn HttpClient>
) -> Self
Choose the http client used by uploader
sourcepub fn with_trace_config(self, config: Config) -> Self
pub fn with_trace_config(self, config: Config) -> Self
Assign the SDK trace configuration
sourcepub fn with_version(self, version: ApiVersion) -> Self
pub fn with_version(self, version: ApiVersion) -> Self
Set version of Datadog trace ingestion API
sourcepub fn with_resource_mapping<F>(self, f: F) -> Selfwhere
F: for<'a> Fn(&'a SpanData, &'a ModelConfig) -> &'a str + Send + Sync + 'static,
pub fn with_resource_mapping<F>(self, f: F) -> Selfwhere
F: for<'a> Fn(&'a SpanData, &'a ModelConfig) -> &'a str + Send + Sync + 'static,
Custom the value used for resource
field in datadog spans.
See FieldMappingFn
for details.
sourcepub fn with_name_mapping<F>(self, f: F) -> Selfwhere
F: for<'a> Fn(&'a SpanData, &'a ModelConfig) -> &'a str + Send + Sync + 'static,
pub fn with_name_mapping<F>(self, f: F) -> Selfwhere
F: for<'a> Fn(&'a SpanData, &'a ModelConfig) -> &'a str + Send + Sync + 'static,
Custom the value used for name
field in datadog spans.
See FieldMappingFn
for details.
sourcepub fn with_service_name_mapping<F>(self, f: F) -> Selfwhere
F: for<'a> Fn(&'a SpanData, &'a ModelConfig) -> &'a str + Send + Sync + 'static,
pub fn with_service_name_mapping<F>(self, f: F) -> Selfwhere
F: for<'a> Fn(&'a SpanData, &'a ModelConfig) -> &'a str + Send + Sync + 'static,
Custom the value used for service_name
field in datadog spans.
See FieldMappingFn
for details.
Trait Implementations
sourceimpl Debug for DatadogPipelineBuilder
impl Debug for DatadogPipelineBuilder
Auto Trait Implementations
impl !RefUnwindSafe for DatadogPipelineBuilder
impl Send for DatadogPipelineBuilder
impl Sync for DatadogPipelineBuilder
impl Unpin for DatadogPipelineBuilder
impl !UnwindSafe for DatadogPipelineBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more