feat(span): internal API split for Span#7881
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7881 +/- ##
==========================================
+ Coverage 74.39% 74.41% +0.02%
==========================================
Files 768 769 +1
Lines 35800 35852 +52
==========================================
+ Hits 26633 26681 +48
- Misses 9167 9171 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Overall package sizeSelf size: 5.48 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.0.0 | 81.15 kB | 815.98 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 2023f86 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
BenchmarksBenchmark execution time: 2026-04-07 19:02:19 Comparing candidate commit 2023f86 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 235 metrics, 25 unstable metrics. |
| testName, | ||
| testStatus, | ||
| finishTime: this.activeTestSpan._getTime(), // we store the finish time here | ||
| finishTime: activeSpan._getTime(), // we store the finish time here |
There was a problem hiding this comment.
What should be on the store is an internal span, not a public span, so this change shouldn't be needed.
| ERROR_STACK: 'error.stack', | ||
| IGNORE_OTEL_ERROR: Symbol('ignore.otel.error'), | ||
| COMPONENT: 'component', | ||
| SVC_SRC_KEY: '_dd.svc_src', |
There was a problem hiding this comment.
This file change will not be needed once #7824 is merged.
This PR should be merged after the above PR.
What does this PR do?
This PR adds an internal API split for Span which allows a distinction between the internal use of Span and the user use of Span. This internal API split consists of adding a wrapper to the user exposed Span through the proxy.
This PR adds the wrapper on the proxy exposed startSpand, the internal trace which is mostly user used and the internal scope.
Motivation
Having a distinction between internal and external use of Span, and acting accoridngly.
Additional Notes