pub struct DatadogPipelineBuilder { /* private fields */ }
Expand description
Builder for ExporterConfig
struct.
Implementations§
Source§impl 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: RuntimeChannel>(
self,
runtime: R,
) -> Result<Tracer, TraceError>
pub fn install_batch<R: RuntimeChannel>( 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, service_name: T) -> Self
pub fn with_service_name<T: Into<String>>(self, service_name: T) -> Self
Assign the service name under which to group traces
Sourcepub fn with_version<T: Into<String>>(self, version: T) -> Self
pub fn with_version<T: Into<String>>(self, version: T) -> Self
Assign the version under which to group traces
Sourcepub fn with_env<T: Into<String>>(self, env: T) -> Self
pub fn with_env<T: Into<String>>(self, env: T) -> Self
Assign the env 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: T) -> Self
pub fn with_http_client<T: HttpClient + 'static>(self, client: T) -> 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_api_version(self, api_version: ApiVersion) -> Self
pub fn with_api_version(self, api_version: ApiVersion) -> Self
Set version of Datadog trace ingestion API
Sourcepub fn with_resource_mapping<F>(self, f: F) -> Self
pub fn with_resource_mapping<F>(self, f: F) -> Self
Custom the value used for resource
field in datadog spans.
See FieldMappingFn
for details.
Sourcepub fn with_name_mapping<F>(self, f: F) -> Self
pub fn with_name_mapping<F>(self, f: F) -> Self
Custom the value used for name
field in datadog spans.
See FieldMappingFn
for details.
Sourcepub fn with_service_name_mapping<F>(self, f: F) -> Self
pub fn with_service_name_mapping<F>(self, f: F) -> Self
Custom the value used for service_name
field in datadog spans.
See FieldMappingFn
for details.