-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(core): Add trace
envelope header to span envelope
#11699
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
1e622f2
to
4c454d4
Compare
c2537f1
to
558bdd8
Compare
size-limit report 📦
|
4c454d4
to
84d49ca
Compare
558bdd8
to
238c267
Compare
84d49ca
to
8b3627a
Compare
238c267
to
3420308
Compare
3420308
to
082d3b0
Compare
sample_rate: '1', | ||
sampled: 'true', | ||
trace_id: traceId, | ||
transaction: 'outer', |
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.
So just to point this out: In a hyptothetical scenario, where a standalone span is created during an active transaction, it's DSC/trace
header will be inherited from the active span tree's DSC. I think this is okay for now at least, since it guarantees DS and trace stability as long as one trace is active. Also this scenario is not going to happen in the SDK for how we plan on using standalone
for http.client
and INP spans.
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.
makes sense still for it to be this way! 👍
sample_rate: '1', | ||
sampled: 'true', | ||
trace_id: spanJson.trace_id, | ||
transaction: 'standalone_span', |
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.
Also worth pointing out: In case of no previously active parent span, like in this test, the standalone span is treated like a transaction DSC/trace
header -wise
will rebase this again when #11696 is merged. This should also fix the failing e2e test |
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.
very nice!
47a67db
to
5095e82
Compare
based on #11696
This PR adds a
trace
envelope header to our standalone span envelope creation function.ref #11562