getsentry / getsentry/sentry-python

Add _meta tag containing the number of breadcrumbs truncated

オープン
#3,996 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue Improvement Python
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。