getsentry / getsentry/sentry-python

Make the `structlog` integration for Sentry logs

Aberta
#4,417 7 comentários 11 reações 1 responsável Reivindicada por @alexander-alderman-webb Ver no GitHub
Feature Logs Python
Linguagem predominante
Python
Estrelas
2.2k
Forks
669
Merge médio
1d 1h
PRs com merge (30d)
213

Descrição

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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.