Skip to content

Commit a498993

Browse files
tlhunterclaude
andauthored
feat(config): enable process tags by default (#7850)
Process tags are now enabled by default via DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED. Users can still disable them by setting the environment variable to "false". Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
1 parent f657b07 commit a498993

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

packages/dd-trace/src/config/supported-configurations.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,9 @@
744744
],
745745
"DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED": [
746746
{
747-
"implementation": "A",
747+
"implementation": "B",
748748
"type": "boolean",
749-
"default": "false",
749+
"default": "true",
750750
"configurationNames": [
751751
"propagateProcessTags.enabled"
752752
]

packages/dd-trace/test/process-tags.spec.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,19 +302,21 @@ describe('process-tags', () => {
302302
assert.strictEqual(processor._processTags, false)
303303
})
304304

305-
it('should disable process tags propagation when not set', () => {
306-
// Don't set the environment variable
305+
it('should enable process tags propagation when not set', () => {
306+
// Don't set the environment variable — default is enabled
307307

308308
const config = getConfigFresh()
309309
const processTagsModule = require('../src/process-tags')
310310
processTagsModule.initialize()
311311

312-
assert.notStrictEqual(config.propagateProcessTags?.enabled, true)
312+
assert.ok(config.propagateProcessTags)
313+
assert.strictEqual(config.propagateProcessTags.enabled, true)
313314

314315
SpanProcessor = require('../src/span_processor')
315316
const processor = new SpanProcessor(undefined, undefined, config)
316317

317-
assert.strictEqual(processor._processTags, false)
318+
assert.ok(typeof processor._processTags === 'string')
319+
assert.match(processor._processTags, /entrypoint/)
318320
})
319321
})
320322
})

0 commit comments

Comments
 (0)