From ee0bfda90644b7b967c12516607c4cc28ac518f7 Mon Sep 17 00:00:00 2001 From: Louis Tricot Date: Wed, 18 Mar 2026 19:07:07 +0100 Subject: [PATCH 1/2] Fixes the tag name for process tags --- ext/serializer.c | 2 +- tests/Integrations/Custom/Autoloaded/ProcessTagsWebTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/serializer.c b/ext/serializer.c index 03738e0e733..70ce1f1f1fd 100644 --- a/ext/serializer.c +++ b/ext/serializer.c @@ -1614,7 +1614,7 @@ ddog_SpanBytes *ddtrace_serialize_span_to_rust_span(ddtrace_span_data *span, ddo if (is_first_span) { zend_string *process_tags = ddtrace_process_tags_get_serialized(); if (ZSTR_LEN(process_tags)) { - ddog_add_str_span_meta_zstr(rust_span, "_dd.process_tags", process_tags); + ddog_add_str_span_meta_zstr(rust_span, "_dd.tags.process", process_tags); } } diff --git a/tests/Integrations/Custom/Autoloaded/ProcessTagsWebTest.php b/tests/Integrations/Custom/Autoloaded/ProcessTagsWebTest.php index d453f81291f..406fd9409ce 100644 --- a/tests/Integrations/Custom/Autoloaded/ProcessTagsWebTest.php +++ b/tests/Integrations/Custom/Autoloaded/ProcessTagsWebTest.php @@ -37,8 +37,8 @@ public function testProcessTagsEnabledForWebSapi() $rootSpan = $traces[0][0]; // Verify _dd.tags.process exists - $this->assertArrayHasKey('_dd.process_tags', $rootSpan['meta']); - $processTags = $rootSpan['meta']['_dd.process_tags']; + $this->assertArrayHasKey('_dd.tags.process', $rootSpan['meta']); + $processTags = $rootSpan['meta']['_dd.tags.process']; // Parse the process tags $tags = []; From d20193ce96d9406a92130d6960e02b9ded35d429 Mon Sep 17 00:00:00 2001 From: Louis Tricot Date: Wed, 18 Mar 2026 19:13:02 +0100 Subject: [PATCH 2/2] leftover --- tests/ext/process_tags.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ext/process_tags.phpt b/tests/ext/process_tags.phpt index da04bafec50..7e532482c0f 100644 --- a/tests/ext/process_tags.phpt +++ b/tests/ext/process_tags.phpt @@ -20,8 +20,8 @@ $child_span->service = 'test_service'; $spans = dd_trace_serialize_closed_spans(); // Check if process tags are present -if (isset($spans[0]['meta']['_dd.process_tags'])) { - $processTags = $spans[0]['meta']['_dd.process_tags']; +if (isset($spans[0]['meta']['_dd.tags.process'])) { + $processTags = $spans[0]['meta']['_dd.tags.process']; echo "Process tags present in root span: YES\n"; echo "Process tags: $processTags\n";