Skip to content

Commit 7670947

Browse files
bm1549claude
andcommitted
fix: add _dd.p.ksr to expected meta maps in DDAgentApiTest
The ksr implementation now adds _dd.p.ksr tag to spans with agent sampling rate, so the msgpack serialization test expectations need to include it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1ce9e46 commit 7670947

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dd-trace-core/src/test/groovy/datadog/trace/common/writer/DDAgentApiTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class DDAgentApiTest extends DDCoreSpecification {
164164
[[buildSpan(1L, "service.name", "my-service", PropagationTags.factory().fromHeaderValue(PropagationTags.HeaderType.DATADOG, "_dd.p.usr=123"))]] | [[new TreeMap<>([
165165
"duration" : 10,
166166
"error" : 0,
167-
"meta" : ["thread.name": Thread.currentThread().getName(), "_dd.p.usr": "123", "_dd.p.dm": "-1", "_dd.svc_src" : "m"] +
167+
"meta" : ["thread.name": Thread.currentThread().getName(), "_dd.p.usr": "123", "_dd.p.dm": "-1", "_dd.p.ksr": "1", "_dd.svc_src" : "m"] +
168168
(Config.get().isExperimentalPropagateProcessTagsEnabled() ? ["_dd.tags.process" : ProcessTags.getTagsForSerialization().toString()] : []),
169169
"metrics" : [
170170
(DDSpanContext.PRIORITY_SAMPLING_KEY) : 1,
@@ -185,7 +185,7 @@ class DDAgentApiTest extends DDCoreSpecification {
185185
[[buildSpan(100L, "resource.name", "my-resource", PropagationTags.factory().fromHeaderValue(PropagationTags.HeaderType.DATADOG, "_dd.p.usr=123"))]] | [[new TreeMap<>([
186186
"duration" : 10,
187187
"error" : 0,
188-
"meta" : ["thread.name": Thread.currentThread().getName(), "_dd.p.usr": "123", "_dd.p.dm": "-1"] +
188+
"meta" : ["thread.name": Thread.currentThread().getName(), "_dd.p.usr": "123", "_dd.p.dm": "-1", "_dd.p.ksr": "1"] +
189189
(Config.get().isExperimentalPropagateProcessTagsEnabled() ? ["_dd.tags.process" : ProcessTags.getTagsForSerialization().toString()] : []),
190190
"metrics" : [
191191
(DDSpanContext.PRIORITY_SAMPLING_KEY) : 1,

0 commit comments

Comments
 (0)