dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

feat(ws): add websocket context propagation

Open tlhunter opened this issue 2 weeks ago • 3 comments

What does this PR do?

  • adds context propagation for websocket messages sent using the ws package

Motivation

  • feature parity with the other tracers
  • spec

tlhunter avatar Dec 10 '25 22:12 tlhunter

Overall package size

Self size: 4.36 MB Deduped: 5.19 MB No deduping: 5.19 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

github-actions[bot] avatar Dec 10 '25 22:12 github-actions[bot]

Codecov Report

:x: Patch coverage is 82.05128% with 14 lines in your changes missing coverage. Please review. :white_check_mark: Project coverage is 84.77%. Comparing base (d9a3a8e) to head (fc06332). :warning: Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
packages/datadog-plugin-ws/src/close.js 47.61% 11 Missing :warning:
packages/datadog-plugin-ws/src/util.js 86.95% 3 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7077      +/-   ##
==========================================
- Coverage   84.78%   84.77%   -0.02%     
==========================================
  Files         521      522       +1     
  Lines       22155    22232      +77     
==========================================
+ Hits        18785    18848      +63     
- Misses       3370     3384      +14     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

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

codecov[bot] avatar Dec 10 '25 22:12 codecov[bot]

Benchmarks

Benchmark execution time: 2025-12-18 16:57:21

Comparing candidate commit fc063329d425782ac852d024e6508b19a862556a in PR branch tlhunter/websocket-context-propagation with baseline commit d9a3a8ee81030b06c173a431f6e57407b8039e58 in branch master.

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

pr-commenter[bot] avatar Dec 10 '25 22:12 pr-commenter[bot]

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: fc06332 | Docs | Datadog PR Page | Was this helpful? Give us feedback!