getsentry / getsentry/sentry-python
Make the `structlog` integration for Sentry logs
Ouverte
#4,417
7 commentaires
11 réactions
1 personne assignée
Réclamée par @alexander-alderman-webb
Voir sur GitHub
Feature
Logs
Python
- Langage dominant
- Python
- Étoiles
- 2.2k
- Forks
- 669
- Merge moyen
- 1 j 1 h
- PR mergées (30 j)
- 213
Description
### 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.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.