-
-
Notifications
You must be signed in to change notification settings - Fork 522
Unify Logs and Metrics implementations #2826
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
83d69f3 to
3a1fba7
Compare
| ] | ||
|
|
||
| SENTRY_ATTRIBUTES = { | ||
| "sentry.trace.parent_span_id" => :parent_span_id, |
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.
this is now just span_id top level field
3a1fba7 to
1299839
Compare
* Make `LogEvent` go through `scope.apply_to_telemetry` * Populate default and user attributes in `scope.apply_to_telemetry` * Simplify LogEvent to be more simpler with serialization logic, remove all unnecessary fields
1299839 to
0f6d57a
Compare
| }.compact | ||
|
|
||
| telemetry.attributes = user_attributes.merge(telemetry.attributes) | ||
| end |
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.
@sl0thentr0py would be good to optimize this to avoid extra hash allocations, otherwise this will be a performance regression.
8c6a0a9 to
dcd81f7
Compare
solnic
left a comment
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.
@sl0thentr0py one more tweak 🙏🏻
dcd81f7 to
580896e
Compare
Co-authored-by: Peter Solnica <[email protected]>
a0f051a to
94da548
Compare
solnic
left a comment
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.
🎉 🚀
Description
LogEventgo throughscope.apply_to_telemetryinstead ofscope.apply_to_eventscope.apply_to_telemetryLogEventserialization logic, remove all unnecessary fieldsIssues