Skip to main content

libdd_sampling/
dd_constants.rs

1// Copyright 2025-Present Datadog, Inc. https://www.datadoghq.com/
2// SPDX-License-Identifier: Apache-2.0
3
4/// Higher-order trace ID bits propagation tag.
5#[allow(unused)]
6pub const HIGHER_ORDER_TRACE_ID_BITS_TAG: &str = "_dd.p.tid";
7
8/// Span kind meta tag.
9#[allow(unused)]
10pub const SPAN_KIND_TAG: &str = "span.kind";
11
12/// Event extraction sampling rate metric key.
13pub const SAMPLING_RATE_EVENT_EXTRACTION_KEY: &str = "_dd1.sr.eausr";
14
15/// Sampling priority metric key.
16pub const SAMPLING_PRIORITY_TAG_KEY: &str = "_sampling_priority_v1";
17
18/// Sampling decision maker propagation tag key.
19pub const SAMPLING_DECISION_MAKER_TAG_KEY: &str = "_dd.p.dm";
20
21/// Sampling rule rate metric key.
22pub const SAMPLING_RULE_RATE_TAG_KEY: &str = "_dd.rule_psr";
23
24/// Sampling agent rate metric key.
25pub const SAMPLING_AGENT_RATE_TAG_KEY: &str = "_dd.agent_psr";
26
27/// Rate limiter effective rate metric key.
28pub const RL_EFFECTIVE_RATE: &str = "_dd.limit_psr";
29
30/// Knuth Sampling Rate propagated tag key.
31pub const SAMPLING_KNUTH_RATE_TAG_KEY: &str = "_dd.p.ksr";