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: boolWhether OTLP trace ingestion is enabled.
internal_port: u16Internal port the OTLP trace receiver forwards to.
probabilistic_sampler_sampling_percentage: f64Percentage 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: NonZeroUsizeNon-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: boolWhether top-level spans are computed from span kind on OTLP traces. (not in Datadog Agent config schema)
ignore_missing_datadog_fields: boolWhether spans missing intake-required fields are ingested rather than rejected. (not in Datadog Agent config schema)
infra_attributes_enabled: boolWhether 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: ContainerTagPromotionHow 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: boolWhether 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.