【问题标题】:Sentry: Transactions quota 80% depletedSentry:交易配额已用完 80%
【发布时间】:2022-01-05 04:35:14
【问题描述】:

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

Sentry:交易配额已用完 80%

接近交易配额

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

我只是想使用 use sentry 来监控未捕获的异常。

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

如何禁用对我的事务的监控,以便只监控未捕获的异常?

【问题讨论】:

    标签: sentry


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-21
      • 2015-11-09
      • 2019-07-21
      • 2019-03-28
      • 2021-03-11
      • 1970-01-01
      • 2016-03-24
      • 2019-01-01
      相关资源
      最近更新 更多