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.LoggerHandler 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 2 times, most recently from fe54e9f to d030abf Compare June 15, 2026 12:36
@solnic

solnic commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator Author

@PJUllrich would that be a good solution in your case? 😄

@PJUllrich

Copy link
Copy Markdown
Contributor

@solnic yes, I think so! Thank you! ❤️💚💛💜💙❤️

@solnic solnic force-pushed the feat/logs-capture-config branch from d030abf to e071445 Compare June 24, 2026 08:23
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