getsentry / getsentry/sentry-python

Add _meta tag containing the number of breadcrumbs truncated

Abierto
#3,996 1 comentario 0 reacciones 0 asignados Ver en GitHub
good first issue Improvement Python
Lenguaje dominante
Python
Estrellas
2.2k
Forks
669
Merge medio
1 d 1 h
PR fusionados (30 d)
213

Descripción

### Problem Statement

- The Python SDK currently does not indicate when breadcrumbs are truncated due to the number of breadcrumbs exceeding the default limit or the limit specified in the sentry_sdk.init call. This information is however needed in order to surface this information in the Sentry UI.

- The motivation and context are outlined in https://github.com/getsentry/projects/issues/593 and its parent https://github.com/getsentry/projects/issues/396.

### Solution Brainstorm

Add a _meta entry using an [AnnotatedValue](https://github.com/getsentry/sentry-python/blob/968b3620623bd1a6c90eb71682876e4f93e5c125/sentry_sdk/utils.py#L407) to indicate whenever breadcrumbs were truncated. The _meta entry should include the number of breadcrumbs that were removed.

This requires the SDK to
1. keep track of the number of breadcrumbs truncated,
2. and when an error is captured, record that number into the event _meta.

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.