feat(core): Add trace envelope header to span envelope#11699
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.
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.
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.
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 |
47a67db to
5095e82
Compare
based on #11696
This PR adds a
traceenvelope header to our standalone span envelope creation function.ref #11562