Skip to content

Conversation

@sl0thentr0py
Copy link
Member

@sl0thentr0py sl0thentr0py commented Jan 8, 2026

Description

  • Make LogEvent go through scope.apply_to_telemetry
  • 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


hash = event.to_h

expect(hash[:attributes]["user.id"]).to eq(123)
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 was actually wrong before, they need to be typed like all other attributes

@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
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.

2 participants