getsentry / getsentry/sentry-python

No Quota Separation in Transport Layer

未關閉
#3,575 3 則留言 0 個 reaction 已指派 1 人 已被 @sl0thentr0py 認領 在 GitHub 檢視
Component: Backpressure Monitor Feature Python Quality Improvement
主要語言
Python
星號
2.2k
分支
669
平均合併
1 天 40 分鐘
30 天內合併 PR
212

描述

### How do you use Sentry?

Sentry Saas (sentry.io)

### Version

2.9.0

### Steps to Reproduce

1. Exhaust performance units quota

![Image](https://github.com/user-attachments/assets/1f5bc8ba-0f30-4636-80cf-87ff93bd256b)

2. Attempt to send performance metrics, and you will receive rate limiting issues:
```
[sentry] WARNING: Rate-limited via x-sentry-rate-limits
[sentry] DEBUG: [Monitor] health check negative, downsampling with a factor of 1
```

3. Trigger an error event, it will incorrectly be impacted by the rate limits
```
[sentry] INFO: event processor (.processor at 0xffffa2193560>) dropped event
```

### Expected Result

The Sentry SDK needs a more specific approach to handling rate limits for different event types, such that performance metrics are rate limited when the quota is expended, but error events are still sent to Sentry.

### Actual Result

```
KeyError: 'TriggerTestEvent'
[sentry] INFO: event processor (.processor at 0xffffa2193560>) dropped event
[sentry] DEBUG: [Monitor] health check negative, downsampling with a factor of 2
[sentry] DEBUG: [Monitor] health check negative, downsampling with a factor of 3
[sentry] DEBUG: [Monitor] health check negative, downsampling with a factor of 4
[sentry] DEBUG: [Monitor] health check negative, downsampling with a factor of 5
[sentry] DEBUG: [Monitor] health check negative, downsampling with a factor of 6
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。