Skip to main content

Traces

Struct Traces 

Source
pub struct Traces {
    pub enabled: bool,
    pub internal_port: u16,
    pub probabilistic_sampler_sampling_percentage: f64,
    pub string_interner_size: NonZeroUsize,
    pub enable_compute_top_level_by_span_kind: bool,
    pub ignore_missing_datadog_fields: bool,
    pub infra_attributes_enabled: bool,
    pub container_tag_promotion: ContainerTagPromotion,
    pub span_name_as_resource_name: bool,
    pub span_name_remappings: HashMap<String, String>,
}
Expand description

OTLP trace ingestion settings.

Fields§

§enabled: bool

Whether OTLP trace ingestion is enabled.

§internal_port: u16

Internal port the OTLP trace receiver forwards to.

§probabilistic_sampler_sampling_percentage: f64

Percentage of OTLP traces the OTLP receiver keeps when the APM probabilistic sampler is disabled.

The receiver turns this into a sampling rate and reports that rate on every OTLP trace as _dd.otlp_sr, even when the APM probabilistic sampler makes the sampling decision. Values outside (0, 100), and NaN, normalize to a receiver rate of 1.0. Explicit sampling priorities and other samplers still apply.

Defaults to 100. Lower it to reduce OTLP trace volume when the APM probabilistic sampler is disabled.

§string_interner_size: NonZeroUsize

Non-zero byte budget for the OTLP trace context interner. (not in Datadog Agent config schema)

Defaults to 512 KiB and cannot exceed 1 GiB.

§enable_compute_top_level_by_span_kind: bool

Whether top-level spans are computed from span kind on OTLP traces. (not in Datadog Agent config schema)

§ignore_missing_datadog_fields: bool

Whether spans missing intake-required fields are ingested rather than rejected. (not in Datadog Agent config schema)

§infra_attributes_enabled: bool

Whether entity and global tags from the workload metadata store are enriched onto OTLP traces.

Defaults to true. When false, traces carry only the resource attributes the sender provided.

§container_tag_promotion: ContainerTagPromotion

How custom infrastructure tags are promoted into container tags on OTLP traces.

Defaults to off, which leaves custom tags as plain resource attributes. Convention keys and already-prefixed keys are exempt in every mode.

§span_name_as_resource_name: bool

Whether the OTLP span name becomes the operation name of OTLP spans that have no operation.name.

true selects V1 operation and resource naming. Defaults to false.

§span_name_remappings: HashMap<String, String>

Preferred operation names, keyed by the operation name V1 naming derives.

A non-empty map selects V1 operation and resource naming. Defaults to empty.

Trait Implementations§

Source§

impl Clone for Traces

Source§

fn clone(&self) -> Traces

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Traces

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Traces

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Traces

Source§

fn eq(&self, other: &Traces) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Traces

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Traces

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.