never receive alerts configured for "Number of events in an issue is more than x in y"

オープン
#4,385 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発

調査の方向性

ソースファイル、テスト、エントリーポイントは指定されていません。まず、「Number of events in an issue is more than x in y」ルールを使用した self-hosted セットアップで失敗を再現し、次に、正常に動作する new-issue alert および preview panel とその動作を比較してください。後続のしきい値イベントが、設定された webhook alert をトリガーして配信し、それに応じて最終トリガー時刻が更新されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Waiting for: Product Owner

Peeling off this comment from @maxkerp in https://github.com/getsentry/sentry/issues/116677

We are experiencing a very similar behavior on our self-hosted setup, specifically regarding alert rules failing to execute actions after the initial issue creation.

Our Environment
  • Type: Self-hosted Sentry (managed by a professional third-party hosting service).
  • Integration: Custom integration handling alert webhooks to route notifications into Mattermost.
  • Versions: This setup worked perfectly until our upgrade to v26.4.2 (the April update). Upgrading further to v26.6.6 did not resolve the issue.
Observed Facts
What works
  • "Send Test Notification" always worked and never broke.
  • installation webhook events are also reliably delivered.
  • Alerts configured for "A new issue is created" trigger and deliver successfully on the first event.
What is broken
  • We never receive alerts configured for "Number of events in an issue is more than x in y".

After the first event creates the issue, no subsequent volume or frequency thresholds trigger an alert for that issue again.

UI & Metadata Observations
  • "Time Last Triggered": The alert rule is never shown to be triggered beyond the initial creation event. The "time last triggered" field in the Sentry UI only ever reflects the timestamp of that very first event.
  • Preview Panel: Despite the alert never firing, the preview panel within the alert configuration page does correctly display the newer events that meet the criteria and should be triggering the alert.

The fact that the docs for webhooks are out of date made this harder to debug than necessary #18370
Since the preview and the triggering logic is diverging maybe related to #118216

p.s. I had ai help me write this comment. But I'm a real person. Please reach out if you need more information/context. Thanks for your work! ❤️

Originally posted by @maxkerp in #116677

主要言語
Shell
スター
9.7k
フォーク
2k
平均マージ
3日 2時間
マージ済み PR(30日)
16

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getsentry/self-hosted のほかの issue

getsentry/self-hosted の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

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

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