-
Notifications
You must be signed in to change notification settings - Fork 140
RUM-2149 Propagate Parent Span #1627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d273d9b
to
eb50bb4
Compare
Datadog ReportBranch report: ✅ 0 Failed, 2749 Passed, 0 Skipped, 11m 32.31s Wall Time 🔻 Code Coverage Decreases vs Default Branch (9)
|
I wonder why there is no change in the implementations of For example
|
DatadogCore/Tests/Datadog/Tracing/TracingURLSessionHandlerTests.swift
Outdated
Show resolved
Hide resolved
eb50bb4
to
d6fa725
Compare
Because most propagation headers do not support propagation of the parent, only b3 does. |
d6fa725
to
f6a6df3
Compare
Datadog ReportBranch report: ✅ 0 Failed, 2763 Passed, 0 Skipped, 10m 46.05s Wall Time 🔻 Code Coverage Decreases vs Default Branch (9)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One small suggestion, otherwise LGTM
spanID: spanID, | ||
parentSpanID: parentSpanID | ||
) | ||
public func register(trace: TraceContext) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can potentially make var trace
public
and drop the register()
function. I assume it's protocol conformance only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, tho I'm following the pattern in place for the class.
What and why?
Proposal on propagating parent span id to distributing tracing.
Additionally, stop overwriting propagation headers.
How?
DatadogTrace
now uses the active span as parent context in distributing tracing, if available.Note
Parent span propagation only works with APM, not with RUM-to-APM.
Review checklist
Custom CI job configuration (optional)
tools/