getsentry / getsentry/sentry-python

Make the `structlog` integration for Sentry logs

Offen
#4,417 7 Kommentare 11 Reaktionen 1 zugewiesene Person Beansprucht von @alexander-alderman-webb Auf GitHub ansehen
Feature Logs Python
Vorherrschende Sprache
Python
Sterne
2.2k
Forks
669
Ø Merge
1 T. 1 Std.
Gemergte PRs (30 T.)
213

Beschreibung

### Problem Statement

`structlog` logs can be sent to Sentry via the existing `LoggingIntegration`; however, this does not preserve the structuring of the logs (e.g. if the logs have custom attributes set, these are included in the log message). See [this example](https://github.com/getsentry/sentry-python/issues/4417#issuecomment-2910640972)

### Solution Brainstorm

Instead, create a dedicated `structlog` integration, which would add these logs to the log event as custom attributes.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.