Sentry:交易配额已耗尽80%

gue*_*tli 4 sentry

我从哨兵那里收到这封邮件:

\n

Sentry:交易配额已耗尽80%

\n
\n

接近交易限额

\n

您的组织 FooBar 在当前使用期间消耗了 80% 的交易容量。请务必记住,如果您达到配额并消耗您的按需支出,任何超额交易都将被丢弃,直到您转入 2021 年 12 月 18 日之后的下一个时期。

\n
\n

我只是想使用使用哨兵来监视未捕获的异常。

\n

但似乎哨兵监视了我所有的交易。那不是我想要的。

\n

如何禁用对交易的监控,以便仅监控未捕获的异常?

\n

gue*_*tli 5

如果减少traces_sample_rate,那么发送给哨兵的样本就会减少。

sentry_sdk.init(
    dsn="https://39f146...@xxx.ingest.sentry.io/xxx",
    integrations=[DjangoIntegration()],
    traces_sample_rate=0.1,  # < ------------------- reduce this
 
Run Code Online (Sandbox Code Playgroud)

文档:https ://docs.sentry.io/platforms/python/guides/bottle/configuration/sampling/

  • 而且,配额是独立的。即使您达到了交易限制,只要您没有达到错误限制,错误仍然会被处理。结账:https://forum.sentry.io/t/with-transaction-capacity-reached-will-errors-still-be-reported/12983 (3认同)