Skip to content

Commit 986783b

Browse files
committed
chore(antithesis): Add provider_kind in sample config
Pyld54 asserts a v3 tagset back-reference resolves to an earlier tagset. Agent emits that back-reference only when a metric carries both a shared prefix tagset and its own tags. Previously we only ever emitted load that carried no shared prefix. This commit adds provider_kind into the sampled datadog.yaml. Agent will attach this as a global tag which acts as a shared prefix. 1/3 of configs will not have provider_kind present.
1 parent 2a19b2e commit 986783b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

test/antithesis/harness/src/config.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ pub(crate) struct V3SeriesConfig {
161161
enabled: bool,
162162
}
163163

164+
/// Cloud provider kinds sampled into `provider_kind`. The empty string emits no tag.
165+
const PROVIDER_KINDS: &[&str] = &["", "gke-autopilot", "gke-gdc"];
166+
164167
/// Agent-facing config. `hostname`, `api_key`, `dd_url`, and the socket are
165168
/// supplied by the environment; `log_level`, the series intake API, and the
166169
/// `DogStatsD` options are sampled per branch. The static flags are appended by
@@ -183,6 +186,9 @@ pub struct DatadogConfig {
183186
/// ADP's safety gate for authoritative v3 series, which the Agent has no counterpart for.
184187
/// Sampled with [`Self::use_v3_api`] so ADP and the Agent never split encodings in a timeline.
185188
data_plane_metrics_v3_series_enabled: bool,
189+
/// Cloud provider kind, sampled per timeline.
190+
#[serde(skip_serializing_if = "String::is_empty")]
191+
provider_kind: String,
186192
/// `DogStatsD` options, flattened to top-level `dogstatsd_*` keys.
187193
#[serde(flatten)]
188194
dogstatsd: DogStatsdConfig,
@@ -207,6 +213,7 @@ impl DatadogConfig {
207213
},
208214
serializer_compressor_kind: rng.random(),
209215
data_plane_metrics_v3_series_enabled: series_v3,
216+
provider_kind: PROVIDER_KINDS[rng.random_range(0..PROVIDER_KINDS.len())].to_owned(),
210217
dogstatsd: DogStatsdConfig::sample(rng, dogstatsd_socket),
211218
}
212219
}

0 commit comments

Comments
 (0)