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.
§Errors
If the Endpoint or the APIKey
are not properly set.
Sourcepub fn install(self) -> Result<(Tracer, TracerProvider), TraceError>
pub fn install(self) -> Result<(Tracer, TracerProvider), TraceError>
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_endpoint<T: Into<String>>(self, endpoint: T) -> Self
pub fn with_endpoint<T: Into<String>>(self, endpoint: T) -> Self
Assign the Datadog trace endpoint
pub fn with_api_key<T: Into<String>>(self, key: Option<T>) -> Self
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_host_name(self, host_name: String) -> Self
pub fn with_host_name(self, host_name: String) -> Self
Assign the host_name
Sourcepub fn with_runtime_id(self, runtime_id: String) -> Self
pub fn with_runtime_id(self, runtime_id: String) -> Self
Assign the runtime_id
Sourcepub fn with_container_id(self, container_id: String) -> Self
pub fn with_container_id(self, container_id: String) -> Self
Assign the container_id
Sourcepub fn with_app_version(self, app_version: String) -> Self
pub fn with_app_version(self, app_version: String) -> Self
Assign the app_version
Assign the tags
Sourcepub fn with_flush_size(self, flush_size: usize) -> Self
pub fn with_flush_size(self, flush_size: usize) -> Self
Assign the tags
Trait Implementations§
Source§impl Debug for DatadogPipelineBuilder
impl Debug for DatadogPipelineBuilder
Auto Trait Implementations§
impl Freeze for DatadogPipelineBuilder
impl !RefUnwindSafe for DatadogPipelineBuilder
impl Send for DatadogPipelineBuilder
impl Sync for DatadogPipelineBuilder
impl Unpin for DatadogPipelineBuilder
impl !UnwindSafe for DatadogPipelineBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more