You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(process-tags): signal service name source via svc.user/svc.auto
Emit one of two mutually-exclusive process tags so the Datadog backend
can distinguish user-set vs tracer-resolved service names:
- `svc.user:true` when DD_SERVICE is non-empty (env, INI, OTEL fallback,
remote config)
- `svc.auto:<default_service_name>` when DD_SERVICE is empty and the
tracer auto-resolved the name
Runtime mutations of `datadog.service` (via `ini_set` or remote config)
trigger a recompute. The new `ddtrace_process_tags_reload_with_service`
override threads the ZAI `new_str` through because the value is not yet
committed to `get_DD_SERVICE()` at the time the `ini_change` callback
fires.
Implements: RFC "Signal Service Name Source via Process Tags"
https://docs.google.com/document/d/1c47iSTWxIOHMHfZTF2nT9xfyQaIBP9KJvI9sRn5SvpM
Copy file name to clipboardExpand all lines: tests/ext/process_tags.phpt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,6 @@ if (isset($spans[1]['meta']['_dd.process_tags'])) {
47
47
?>
48
48
--EXPECTF--
49
49
Process tags present in root span: YES
50
-
Process tags: entrypoint.basedir:ext,entrypoint.name:process_tags,entrypoint.type:script,entrypoint.workdir:%s,runtime.sapi:cli
50
+
Process tags: entrypoint.basedir:ext,entrypoint.name:process_tags,entrypoint.type:script,entrypoint.workdir:%s,runtime.sapi:cli,svc.auto:process_tags.php
0 commit comments