-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
Add contexts to SentryTracer and add otel context to it #2361
Conversation
@@ -234,4 +234,19 @@ private SpanStatus mapOtelStatus(final @NotNull ReadableSpan otelSpan) { | |||
private boolean hasSentryBeenInitialized() { | |||
return Sentry.isEnabled(); | |||
} | |||
|
|||
private @NotNull Map<String, Object> toMapWithStringKeys(@Nullable Attributes attributes) { |
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.
JsonObjectSerializer
only serializes Maps with String
keys.
|
Performance metrics 🚀
|
Codecov ReportBase: 80.44% // Head: 80.44% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## feat/otel-span-processor #2361 +/- ##
==============================================================
- Coverage 80.44% 80.44% -0.01%
- Complexity 3692 3694 +2
==============================================================
Files 292 292
Lines 13777 13784 +7
Branches 1817 1817
==============================================================
+ Hits 11083 11088 +5
- Misses 1993 1995 +2
Partials 701 701
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 at Codecov. |
#skip-changelog
📜 Description
SentryTracer
now has acontexts: Contexts
attribute and methods to retrieve and add to contexts.💡 Motivation and Context
This allows us to attach OTEL attributes to the transaction context.
💚 How did you test it?
📝 Checklist
🔮 Next steps