Skip to content

Commit a07c2b7

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 7fc724f commit a07c2b7

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
@@ -162,6 +162,9 @@ pub(crate) struct V3SeriesConfig {
162162
enabled: &'static str,
163163
}
164164

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

0 commit comments

Comments
 (0)