Commit 6f9eee1
committed
feat(serverless): Fix gateway inferred span design
Avoid duplicate expensive context extraction
Avoid subclassing tracing span for serverless but used serverless context element instead to store / track inferred span while keep tracing feature untouched
Improved propagator to not create / capture inferred span context element on invalid data
Rework context element to hold the inferred spans and its captured data
Release captured data as soon as they span start (never read after this point so reclaiming memory)
Refactor context element and propagator into the right package, not context component (product / feature agnostic)
Refactor unit tests1 parent 3597e3b commit 6f9eee1
File tree
11 files changed
+389
-1048
lines changed- .github
- components/context/src
- main/java/datadog/context
- propagation
- test/java/datadog/context
- dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator
- dd-trace-core/src
- main/java/datadog/trace/core
- propagation
- test/java/datadog/trace/core/propagation
- internal-api/src
- main/java/datadog/trace/api
- gateway
- test/java/datadog/trace/api/gateway
11 files changed
+389
-1048
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
Lines changed: 0 additions & 50 deletions
This file was deleted.
Lines changed: 0 additions & 74 deletions
This file was deleted.
0 commit comments