-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ref(v8): Remove metadata
on transaction
#11397
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
size-limit report 📦
|
packages/core/src/tracing/trace.ts
Outdated
// TODO: We should probably only set this if we know we are continuing a trace | ||
// For now, there isn't really a way to know this from in here, though... |
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.
with "this" are you referring to spanContext
? Or should this be moved to the if(dsc)
part below?
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.
ah wait, sorry, I did not move this comment along correctly with code I moved 😅 yeah it belongs to below!
if (dsc) { | ||
freezeDscOnSpan(span, dsc); | ||
} |
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.
Just to check here but I think this is already how it works: Freezing only happens where we're continuing a trace (i.e. if a propagationContext with a DSC exists). In case it doesn't (i.e. we're head of trace || no DSC on propCtx), we don't freeze the DSC at all at the moment, correct? Meaning, we'd populate it for outgoing requests headers or when the span/txn is is processed.
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.
yes, dsc
will only be set on the propagation context if we had an incoming trace, otherwise this will be undefined
and we don't freeze it!
b8b731a
to
21ba125
Compare
Instead, we freeze the DSC explicitly onto the transaction now. Apply suggestions from code review Co-authored-by: Lukas Stracke <[email protected]> fix comments fix linting
b0a881e
to
00a8f25
Compare
Merging this in so I get more manageable merge conflicts |
Instead, we freeze the DSC explicitly onto the transaction now.
Instead, we freeze the DSC explicitly onto the transaction now.