Skip to content

Conversation

@tlhunter
Copy link
Member

@tlhunter tlhunter commented Dec 17, 2025

What does this PR do?

Motivation

  • help with process renaming

@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 17, 2025
@github-actions
Copy link

github-actions bot commented Dec 17, 2025

Overall package size

Self size: 4.35 MB
Deduped: 5.18 MB
No deduping: 5.18 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 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.79%. Comparing base (edfc7c6) to head (ac05a9e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7132   +/-   ##
=======================================
  Coverage   84.78%   84.79%           
=======================================
  Files         521      521           
  Lines       22155    22157    +2     
=======================================
+ Hits        18785    18787    +2     
  Misses       3370     3370           

☔ 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 17, 2025

Benchmarks

Benchmark execution time: 2025-12-18 21:18:50

Comparing candidate commit ac05a9e in PR branch tlhunter/process-tags-dynamic-instrumentation with baseline commit edfc7c6 in branch master.

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

@tlhunter tlhunter marked this pull request as ready for review December 17, 2025 22:59
@tlhunter tlhunter requested review from a team as code owners December 17, 2025 22:59
@datadog-datadog-prod-us1

This comment has been minimized.

@tlhunter tlhunter force-pushed the tlhunter/process-tags-dynamic-instrumentation branch 4 times, most recently from 2882395 to 7cab70c Compare December 18, 2025 03:45
@watson watson added the debugger Dynamic Instrumentation & Live Debugger label Dec 18, 2025
@watson
Copy link
Collaborator

watson commented Dec 18, 2025

@tlhunter this PR could do with a better description. I'm not sure what process tags is and why it's added to the snapshot

@tlhunter tlhunter force-pushed the tlhunter/process-tags-dynamic-instrumentation branch from fc68c4a to ac05a9e Compare December 18, 2025 21:09
@tlhunter
Copy link
Member Author

Just rebased on the chai -> assert migration

Copy link
Collaborator

@watson watson left a comment

Choose a reason for hiding this comment

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

I would prefer a few minor things to be cleaned up, but since the holidays are coming up, I will not want to be a blocker, so I'll approve this PR (as it's just minor optimizations). It would be best to just fix them, and feel free to do so and to get someone else to approve the PR afterwards, but it could also be fixed in a follow-up PR if you prefer.

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.

Nit: I usually don't add extra asserts to validate that a given property is present, if I can assert its value instead. Especially if you as here do that on the very next line.

Same in the section below

language: 'javascript'
}

if (config.propagateProcessTags?.enabled) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

As far as I can see in the client lib config, propagateProcessTags will always be an object, right?

Suggested change
if (config.propagateProcessTags?.enabled) {
if (config.propagateProcessTags.enabled) {

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 debugger Dynamic Instrumentation & Live Debugger semver-minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants