-
-
Notifications
You must be signed in to change notification settings - Fork 222
TransactionTracer.SetData
is not equivalent to TransactionTracer.Contexts.Trace.SetData
#4140
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
Comments
Worth reading the conversations in: @aritchie might have more context as that was his first PR. |
Thanks for the context (on the |
btw I think the description for this issue is a bit confusing:
Once the trace is finished, it gets turned into a From the code example you provided, it looks like the issue is more about the distinction between From memory, we knew this was inconsistent and intentionally didn't fix it for Transaction because it's likely we're going to get rid of the entire concept of transactions at some point in the near future. @bruno-garcia @aritchie have I got that completely backwards? The requirements on the first ticket did my head in as well... I'm really not sure what problem we're trying to solve here. |
@jamescrosswell I think you're correct for that exact reasons you stated. There was a lot of confusion when we did that PR, but we decided to leave it. |
@jamescrosswell thanks for the hint. I rephrased the summary of the description. |
I think it was more, "This isn't a priority since it's throw away work anyway". Now that the work is (mostly) done we may as well merge it in. It will give us greater consistency until the Transactions get thrown out and, to be fair, we've been talking about deprecating those for years so your work on this issue may end up adding some value for longer than we think. |
TransactionTracer.SetData
is not serialized to contexts.trace.data
TransactionTracer.SetData
is not equivalent to TransactionTracer.Contexts.Trace.SetData
Uh oh!
There was an error while loading. Please reload this page.
"data" set via
TransactionTracer.SetData
is not written to "Data" of the Trace-Context, and does not get copied over toSentryTransaction
when created from the tracer.But "data" set via
TransactionTracer.Contexts.Trace.SetData
is written to "Data" of the Trace-Context, and gets copied over toSentryTransaction
when created from the tracer.However,
SentryTransaction.SetData
andSentryTransaction.Contexts.Trace.SetData
are equivalent setting "Data" of the Trace-Context.With Spans, both setting "data" via
SpanTracer.SetData
andSentrySpan.SetData
are eventually serialized tospans.data
("Data" does get copied over toSentrySpan
when created from aSpanTracer
);Steps to Reproduce
Expected Result
Actual Result
Additional Notes
The text was updated successfully, but these errors were encountered: