跳转到主要内容

未提供项目描述

项目描述

sentry-deduplicate-integration

Sentry集成,用于限制重复错误的速率,使用redis同步错误计数和识别重复。

将集成添加到您的sentry_sdk初始化中。

import redis
from sentry_deduplicate_integration import SentryDeduplicateIntegration


sentry_sdk.init(
    integrations=[
        SentryDeduplicateIntegration(
            redis_factory=redis.Redis,
            max_events_per_minute=10,
        ),
    ],
)

redis_factory 参数是任何返回redis客户端的函数。

支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面