Skip to content

Conversation

@sl0thentr0py
Copy link
Member

@sl0thentr0py sl0thentr0py commented Jan 8, 2026

Description

  • Make LogEvent go through scope.apply_to_telemetry instead of scope.apply_to_event
  • Populate default and user attributes in scope.apply_to_telemetry
  • Simplify LogEvent serialization logic, remove all unnecessary fields

Issues

@linear
Copy link

linear bot commented Jan 8, 2026

@sl0thentr0py sl0thentr0py force-pushed the neel/unify-logs-metrics branch 3 times, most recently from 83d69f3 to 3a1fba7 Compare January 8, 2026 15:55
]

SENTRY_ATTRIBUTES = {
"sentry.trace.parent_span_id" => :parent_span_id,
Copy link
Member Author

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

@sl0thentr0py sl0thentr0py marked this pull request as ready for review January 8, 2026 15:59
@sl0thentr0py sl0thentr0py requested a review from solnic January 8, 2026 15:59
@sl0thentr0py sl0thentr0py force-pushed the neel/unify-logs-metrics branch from 3a1fba7 to 1299839 Compare January 8, 2026 16:02
* 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
@sl0thentr0py sl0thentr0py force-pushed the neel/unify-logs-metrics branch from 1299839 to 0f6d57a Compare January 8, 2026 19:41
}.compact

telemetry.attributes = user_attributes.merge(telemetry.attributes)
end
Copy link
Collaborator

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.

@sl0thentr0py sl0thentr0py force-pushed the neel/unify-logs-metrics branch from 8c6a0a9 to dcd81f7 Compare January 12, 2026 13:25
Copy link
Collaborator

@solnic solnic left a 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 🙏🏻

@sl0thentr0py sl0thentr0py force-pushed the neel/unify-logs-metrics branch from dcd81f7 to 580896e Compare January 12, 2026 13:27
@sl0thentr0py sl0thentr0py force-pushed the neel/unify-logs-metrics branch from a0f051a to 94da548 Compare January 12, 2026 13:39
Copy link
Collaborator

@solnic solnic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🚀

@sl0thentr0py sl0thentr0py merged commit 846c2ba into master Jan 12, 2026
135 of 136 checks passed
@sl0thentr0py sl0thentr0py deleted the neel/unify-logs-metrics branch January 12, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants