Skip to content

feat(logs): support for capture_* config#1077

Draft
solnic wants to merge 4 commits into
masterfrom
feat/logs-capture-config
Draft

feat(logs): support for capture_* config#1077
solnic wants to merge 4 commits into
masterfrom
feat/logs-capture-config

Conversation

@solnic

@solnic solnic commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

This adds support for configuring the log handler error capturing - which is different from sending error logs and crashes.

Two new options are added go :logs config:

  • capture_log_messages - toggle capturing on / off
  • capture_level - the log level for capturing (distinct from logs.level config)
  • capture_metadata - which metadata is accepted when capturing log messages
  • capture_excluded_domains - which logging domains must be excluded when capturing log messages

This is the first step towards deprecating the original Sentry.LoggerBackend as Sentry.LogHandler is replacing it, handling both structured logging and capturing logs as Sentry events.


Refs #1036

@solnic solnic force-pushed the feat/logs-capture-config branch from 3bb5fa5 to fe54e9f Compare June 10, 2026 10:57
@solnic solnic force-pushed the feat/logs-capture-config branch from fe54e9f to d030abf Compare June 15, 2026 12:36
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.

1 participant