Skip to content

Commit 27cd7f4

Browse files
chore(telemetry): update baggage telemetry name (#9379)
1 parent 95f3be2 commit 27cd7f4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dd-trace-core/src/test/groovy/datadog/trace/core/baggage/BaggagePropagatorTelemetryTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ class BaggagePropagatorTelemetryTest extends Specification {
7878
malformedMetric.tags.contains("header_style:baggage")
7979

8080
def bytesTruncatedMetric = metrics.find {
81-
it.metricName == "context_header_style.truncated" &&
81+
it.metricName == "context_header.truncated" &&
8282
it.tags.contains("truncation_reason:baggage_byte_count_exceeded")
8383
}
8484
bytesTruncatedMetric != null
8585
bytesTruncatedMetric.value == 1
8686

8787
def itemsTruncatedMetric = metrics.find {
88-
it.metricName == "context_header_style.truncated" &&
88+
it.metricName == "context_header.truncated" &&
8989
it.tags.contains("truncation_reason:baggage_item_count_exceeded")
9090
}
9191
itemsTruncatedMetric != null

internal-api/src/main/java/datadog/trace/api/metrics/BaggageMetrics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ private BaggageMetrics() {
3333
"context_header_style.malformed", this.malformedCounter, "header_style:baggage"));
3434
counters.add(
3535
new TaggedCounter(
36-
"context_header_style.truncated",
36+
"context_header.truncated",
3737
this.truncatedByteCounter,
3838
"truncation_reason:baggage_byte_count_exceeded"));
3939
counters.add(
4040
new TaggedCounter(
41-
"context_header_style.truncated",
41+
"context_header.truncated",
4242
this.truncatedItemCounter,
4343
"truncation_reason:baggage_item_count_exceeded"));
4444
this.taggedCounters = Collections.unmodifiableList(counters);

internal-api/src/test/groovy/datadog/trace/api/telemetry/CoreMetricCollectorBaggageTest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CoreMetricCollectorBaggageTest extends Specification {
7272

7373
then:
7474
def baggageMetric = metrics.find {
75-
it.metricName == "context_header_style.truncated" &&
75+
it.metricName == "context_header.truncated" &&
7676
it.tags.contains("truncation_reason:baggage_byte_count_exceeded")
7777
}
7878
baggageMetric != null
@@ -91,7 +91,7 @@ class CoreMetricCollectorBaggageTest extends Specification {
9191

9292
then:
9393
def baggageMetric = metrics.find {
94-
it.metricName == "context_header_style.truncated" &&
94+
it.metricName == "context_header.truncated" &&
9595
it.tags.contains("truncation_reason:baggage_item_count_exceeded")
9696
}
9797
baggageMetric != null

0 commit comments

Comments
 (0)