Skip to content

Normalize and redact structlog payloads sent to Sentry - #408

Merged
lesnik512 merged 1 commit into
mainfrom
fix/389-sentry-log-payload
Nov 3, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/389-sentry-log-payload

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Normalize structured log messages and breadcrumbs before sending them to Sentry. Redact sensitive structured fields, drop skipped logs and breadcrumbs, and preserve user callbacks. Omit frame locals from recognized structlog events because they can contain copies of the raw log.

Closes #389.

  • Verified redaction against serialized envelopes.
  • just test-ci passed with 606 tests and 100% coverage.
  • just lint-ci passed.

@lesnik512
lesnik512 merged commit 8c2f3f0 into main Nov 3, 2026
35 checks passed
@lesnik512
lesnik512 deleted the fix/389-sentry-log-payload branch November 3, 2026 04:09
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.

Parse structlog breadcrumbs and logentry.message so kwargs and skip_sentry lines don't reach Sentry raw

1 participant