Skip to content

Commit 9cde556

Browse files
authored
Fixes the tag name for process tags (#3709)
* Fixes the tag name for process tags * leftover
1 parent 3577a54 commit 9cde556

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

ext/serializer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ ddog_SpanBytes *ddtrace_serialize_span_to_rust_span(ddtrace_span_data *span, ddo
16141614
if (is_first_span) {
16151615
zend_string *process_tags = ddtrace_process_tags_get_serialized();
16161616
if (ZSTR_LEN(process_tags)) {
1617-
ddog_add_str_span_meta_zstr(rust_span, "_dd.process_tags", process_tags);
1617+
ddog_add_str_span_meta_zstr(rust_span, "_dd.tags.process", process_tags);
16181618
}
16191619
}
16201620

tests/Integrations/Custom/Autoloaded/ProcessTagsWebTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public function testProcessTagsEnabledForWebSapi()
3737
$rootSpan = $traces[0][0];
3838

3939
// Verify _dd.tags.process exists
40-
$this->assertArrayHasKey('_dd.process_tags', $rootSpan['meta']);
41-
$processTags = $rootSpan['meta']['_dd.process_tags'];
40+
$this->assertArrayHasKey('_dd.tags.process', $rootSpan['meta']);
41+
$processTags = $rootSpan['meta']['_dd.tags.process'];
4242

4343
// Parse the process tags
4444
$tags = [];

tests/ext/process_tags.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ $child_span->service = 'test_service';
2020
$spans = dd_trace_serialize_closed_spans();
2121

2222
// Check if process tags are present
23-
if (isset($spans[0]['meta']['_dd.process_tags'])) {
24-
$processTags = $spans[0]['meta']['_dd.process_tags'];
23+
if (isset($spans[0]['meta']['_dd.tags.process'])) {
24+
$processTags = $spans[0]['meta']['_dd.tags.process'];
2525
echo "Process tags present in root span: YES\n";
2626
echo "Process tags: $processTags\n";
2727

0 commit comments

Comments
 (0)