Skip to content

Conversation

@tlhunter
Copy link
Member

@tlhunter tlhunter commented Dec 22, 2025

What does this PR do?

  • adds process tags to outbound data
  • things like the directory the app is in, CWD, script name, boring static stuff

Motivation

  • we'll use this information for service renaming

Plugin Checklist

Additional Notes

@github-actions
Copy link

github-actions bot commented Dec 22, 2025

Overall package size

Self size: 4.39 MB
Deduped: 5.21 MB
No deduping: 5.21 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.0 | 68.46 kB | 797.03 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.49%. Comparing base (93ec9f5) to head (065107c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7157   +/-   ##
=======================================
  Coverage   84.48%   84.49%           
=======================================
  Files         523      523           
  Lines       22448    22457    +9     
=======================================
+ Hits        18966    18975    +9     
  Misses       3482     3482           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pr-commenter
Copy link

pr-commenter bot commented Dec 22, 2025

Benchmarks

Benchmark execution time: 2025-12-22 22:32:22

Comparing candidate commit 065107c in PR branch tlhunter/proc-tags-tel-stats-rc with baseline commit 93ec9f5 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 292 metrics, 28 unstable metrics.

@tlhunter tlhunter changed the title feat: process tags for telemetry, client trace stats, remote config feat: process tags for telemetry, crash tracking, remote config Dec 22, 2025
@tlhunter tlhunter added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Dec 22, 2025
@datadog-datadog-prod-us1

This comment has been minimized.

@tlhunter tlhunter force-pushed the tlhunter/proc-tags-tel-stats-rc branch from 2af8f13 to 065107c Compare December 22, 2025 22:24
@tlhunter tlhunter marked this pull request as ready for review December 22, 2025 22:57
@tlhunter tlhunter requested review from a team as code owners December 22, 2025 22:57
@tlhunter tlhunter requested review from BridgeAR and removed request for a team December 22, 2025 22:57
agent.removeListener('remote-config-request', handleRemoteConfigRequest)
done()
} catch (err) {
agent.removeListener('remote-config-request', handleRemoteConfigRequest)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally block?

assert.strictEqual(processTags.DYNAMIC_INSTRUMENTATION_FIELD_NAME, 'process_tags')
assert.strictEqual(processTags.TELEMETRY_FIELD_NAME, 'process_tags')
assert.strictEqual(processTags.REMOTE_CONFIG_FIELD_NAME, 'process_tags')
assert.strictEqual(processTags.CRASH_TRACKING_FIELD_NAME, 'process_tags')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: using assertObjectContains(processTags, { ... }) would improve the output and is simpler to read.

const snapshot = payload[0].debugger.snapshot

// Assert that process_tags are present
assert.ok(snapshot.process_tags)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not true anymore? If that is now falsy, process_tags would be null.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this change to address Watson's comment but you're right it'll be incorrect with a null.

name: 'foo2',
enabled: true,
auto_enabled: true,
process_tags: require('../../src/process-tags').tagsObject
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this not just be required once at the top of the file ?

@simon-id
Copy link
Member

One comment + what Mister Bridgewater said, otherwise LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos semver-minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants