Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack notification delay after new issue arrived to sentry #70285

Open
maylow opened this issue Apr 30, 2024 · 6 comments
Open

Slack notification delay after new issue arrived to sentry #70285

maylow opened this issue Apr 30, 2024 · 6 comments

Comments

@maylow
Copy link

maylow commented Apr 30, 2024

Self-Hosted Version

24.4.1

CPU Architecture

x86_64

Docker Version

20.10.24

Docker Compose Version

2.23.3

Steps to Reproduce

  1. Create alert to send slack notification when new issue is created.
  2. Send issue via sentry-cli.
  3. Sentry gets an issue but not mark it as new issue for 5 minutes.

SCR-20240430-jift

  1. After 5 minutes, it gets mark new issue and send issue to slack.
SCR-20240430-jisg

Expected Result

  1. Create alert to send slack notification when new issue is created.
  2. Send issue via sentry-cli.
  3. Sentry gets an issue, mark it as new issue and send it to slack.

Actual Result

It is regression of the issue: getsentry/self-hosted#2034
The issue showed up after upgrade from 24.3.0 -> 24.4.0 with continue to 24.4.1

I also find the same reason where kafka has LAG on post-process events:

GROUP                  TOPIC           PARTITION  CURRENT-OFFSET  LOG-END-OFFSET  LAG             CONSUMER-ID                                  HOST            CLIENT-ID
post-process-forwarder generic-events  0          478291          478291          0               rdkafka-b5bbee3d-650c-465f-aeb5-b1b2b78eb9a9 /172.18.0.43    rdkafka
post-process-forwarder events          0          9288607         9288608         1               rdkafka-a7f67d85-627b-4fae-ba46-c6e03a7bb3d4 /172.18.0.51    rdkafka
post-process-forwarder transactions    0          186570290       186570290       0               rdkafka-482098cd-d1ab-46fd-8ee6-b9ae3dcf3aea /172.18.0.42    rdkafka

Event ID

No response

@hubertdeng123
Copy link
Member

It is expected for there to be some sort of lag between receiving an event and sending an event on slack. It is unlikely that this process will be in real time. I have a few questions:

  1. Was the slack notification sent in real time before?
  2. Is the slack notification sent only when a new event is ingested after the issue sent via sentry-cli?

@maylow
Copy link
Author

maylow commented May 2, 2024

We have 2 sentry instances and second has version 24.2.0 and this one is working without any issue. New issue sent to sentry is immediately marked as new which is trigger the alert and sent issue to slack.

  1. Yes, before version 24.4.0 it was working as expected.
  2. Slack notify should be sent once new issue is created in sentry. Unfortunately, every issue created in sentry has mark ongoing so it is not sent to slack. Once ongoing mark switched to new then slack shows notify.

@hubertdeng123
Copy link
Member

Got it, you are saying that new issues that come into Sentry appear as Ongoing instead of New? Then, they're not triggering alert rules.

@getsantry
Copy link
Contributor

getsantry bot commented May 3, 2024

Assigning to @getsentry/support for routing ⏲️

@hubertdeng123 hubertdeng123 transferred this issue from getsentry/self-hosted May 3, 2024
@getsantry
Copy link
Contributor

getsantry bot commented May 3, 2024

Routing to @getsentry/product-owners-alerts for triage ⏲️

@getsantry
Copy link
Contributor

getsantry bot commented May 3, 2024

Routing to @getsentry/product-owners-issues for triage ⏲️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: No status
Status: No status
Development

No branches or pull requests

3 participants