#[non_exhaustive]pub struct Config { /* private fields */ }Expand description
Configuration for the Datadog Tracer
§Usage
use datadog_opentelemetry::configuration::Config;
let config = Config::builder() // This pulls configuration from the environment and other sources
.set_service("my-service".to_string()) // Override service name
.set_version("1.0.0".to_string()) // Override version
.build();Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Creates a new builder to set overrides detected configuration
pub fn runtime_id(&self) -> &str
pub fn tracer_version(&self) -> &str
pub fn language(&self) -> &str
pub fn language_version(&self) -> &str
pub fn service(&self) -> impl Deref<Target = str> + use<'_>
pub fn service_is_default(&self) -> bool
pub fn env(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
pub fn trace_agent_url(&self) -> &Cow<'static, str>
pub fn dogstatsd_agent_host(&self) -> &Cow<'static, str>
pub fn dogstatsd_agent_port(&self) -> &u32
pub fn dogstatsd_agent_url(&self) -> &Cow<'static, str>
pub fn trace_sampling_rules( &self, ) -> impl Deref<Target = [SamplingRuleConfig]> + use<'_>
pub fn trace_rate_limit(&self) -> i32
pub fn enabled(&self) -> bool
pub fn log_level_filter(&self) -> &LevelFilter
pub fn trace_stats_computation_enabled(&self) -> bool
pub fn telemetry_enabled(&self) -> bool
pub fn telemetry_log_collection_enabled(&self) -> bool
pub fn telemetry_heartbeat_interval(&self) -> f64
pub fn trace_partial_flush_enabled(&self) -> bool
pub fn trace_partial_flush_min_spans(&self) -> usize
pub fn trace_propagation_style(&self) -> Option<&[TracePropagationStyle]>
pub fn trace_propagation_style_extract( &self, ) -> Option<&[TracePropagationStyle]>
pub fn trace_propagation_style_inject(&self) -> Option<&[TracePropagationStyle]>
pub fn trace_propagation_extract_first(&self) -> bool
Sourcepub fn remote_config_enabled(&self) -> bool
pub fn remote_config_enabled(&self) -> bool
Check if remote configuration is enabled
Sourcepub fn remote_config_poll_interval(&self) -> f64
pub fn remote_config_poll_interval(&self) -> f64
Get RC poll interval (seconds)
Return tags max length
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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