-
Notifications
You must be signed in to change notification settings - Fork 217
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
fix: Introduce a new Span.Name field #605
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #605 +/- ##
==========================================
+ Coverage 78.86% 78.99% +0.12%
==========================================
Files 38 38
Lines 3870 3851 -19
==========================================
- Hits 3052 3042 -10
+ Misses 714 708 -6
+ Partials 104 101 -3
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
f3aaa57
to
cb8009a
Compare
So how do we override the transaction name in later calls?
This is no longer possible. |
transaction := sentry.TransactionFromContext(ctx)
if transaction != nil {
transaction.Name = "xxxx"
} |
How would this work for other/error events? We automatically create and inject a Hub per request and then do:
This would then automatically add the transaction to every event coming from this scope using the
And it doesn't look an alternative has been added? Edit: it could also be that I'm using the |
@jerbob92 So, |
Perhaps updating the documentation and SDKs are in order because frankly, transactions / spans / tags / things that show as 'database' events are all super obscure and vary from sdk to sdk. |
This removes the
transaction
on the scope in favor of a new SpanName
field.Besides fixing an issue with the Otel context, we also gain a cleaner way of accessing the transaction name, for example in the
TracesSampler
:Before
After
closes #596