Repository navigation
feat(attributes): Add missing log severity attributes - #831
Conversation
Add sentry.severity_txt and sentry.severity_number which are sent with logs by the Python SDK. Refs getsentry/sentry-python#8353 PY-3094
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
🤖 This preview updates automatically when you update the PR. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4d9799a. Configure here.
alexander-alderman-webb
left a comment
There was a problem hiding this comment.
Wait a few days for others to take a look
Lms24
left a comment
There was a problem hiding this comment.
Before we merge, can we make sure the apply_scrubbing rule is correct here? i.e. if product functionality depends on these attributes, "never" is fine (+ I don't see Pii concerns). Otherwise, let's default to "manual"
Thanks for flagging, I gave it a deeper look:
|
Change scrubbing from never to manual for severity attributes. sentry.severity_text is currently overriden in Relay so it cannot be broken by scrubbing anyway. Refs getsentry/sentry-python#8353 PY-3094
Lms24
left a comment
There was a problem hiding this comment.
Thanks for checking! We can go with manual for now and downgrade to never if necessary at any time :)

Description
Add missing log severity attributes sent by the Python SDK with logs
PR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.If an attribute was added:
nextjs.function_id, notfunction_id)apply_scrubbing(i.e.manualorauto. Useneveronly for values that should never be scrubbed such as IDs)Closes getsentry/sentry-python#8353
PY--3094