fix: Ensure structured logs from an SDK integration has sentry.origin#4566
Conversation
|
@sentry review |
|
bugbot review |
This comment has been minimized.
This comment has been minimized.
🚨 Bugbot couldn't runSomething went wrong. Try again by commenting "Cursor review" or "bugbot run", or contact support (requestId: serverGenReqId_8ec61e90-31f9-40d2-9718-56e6535d466d). |
|
bugbot review |
|
@sentry review |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4566 +/- ##
=======================================
Coverage 73.46% 73.47%
=======================================
Files 482 482
Lines 17678 17682 +4
Branches 3493 3493
=======================================
+ Hits 12988 12992 +4
Misses 3800 3800
Partials 890 890 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
I'm not 100 % convinced of the origin names that we use right now, but also don't have a concrete suggestion in store ... if you don't mind, I'll let my mind wander a bit and will get back to you soon.
Also, feedback from other reviewers appreciated. @jamescrosswell what do you think?
From memory, we started setting the
|
|
Whoops, forgot to mention that we will be consolidating the category for |
Fixes #4560, fixes #4618
sentry.originattribute attached #4560sentry.originfor Structured Logs according to the documentation #4618Problem
According to our SDK specification, we have to set
sentry.originwhenever a log is sent from an integration.Solution
sentry-dotnethas a few integrations that send out logs. This PR affects the following integrations:Sentry.Extensions.LoggingSentry.SerilogAnd affects other integrations that references
Sentry.Extensions.Logging, or references it transitively.Comparison
Before, logs from

Sentry.Serilogdidn't havesentry.origin:After, logs from

Sentry.Seriloghassentry.originpopulated: