getsentry / getsentry/sentry-python

Make the `structlog` integration for Sentry logs

Abierto
#4,417 7 comentarios 11 reacciones 1 asignado Reclamado por @alexander-alderman-webb Ver en GitHub
Feature Logs Python
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 1 h
PR fusionados (30 d)
213

Descripción

### 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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.