getsentry / getsentry/sentry

Slack integration - Hitting Slack rate limit when using API's to create alerts gives wrong error message

Open
#80,443 12 comments 10 reactions 0 assignees View on GitHub
Feature Metrics Product Area: Settings - Integrations Sync: Jira
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
22h 21m
Merged PRs (30d)
586

Description

### Environment

SaaS ([https://sentry.io/]())

### Steps to Reproduce

1. Create/edit multiple alerts through [https://sentry.io/api/0/organizations//alert-rules//]()
2. make sure you set a slack action step to a channel

### Expected Result

When Slack is rate limiting the requests it should be clear within Sentry users why it has been failing.

### Actual Result

Error message is: (ERROR): failed to update transactionsVolume, 400 given. Received: {"nonFieldErrors":\["Could not retrieve Slack channel information."\]}

While internally we get "The Slack API responded with {'ok': False, 'error': 'ratelimited'}"

We likely will need to add a rate limit check [here]().

### Product Area

Settings - Integrations

### Link

*No response*

### DSN

*No response*

### Version

*No response*

┆Issue is synchronized with this [Jira Improvement]() by [Unito]()

We want to define a set of [lightweight metrics]() that SDKs can automatically collect for e.g. framework, language or platform, focusing only on signals that **do NOT overlap with Tracing**. Ideally these metrics should give a quick sense of app or runtime health, … while deeper investigation will still rely on traces or profiles.

Examples**:**

* Node.js runtime metrics (e.g., event loop delay, heap usage)
* Prisma-related metrics in Next.js
* Mobile CPU / memory usage to help surface potential ANRs or app hangs

---

**Candidate Metrics (add more below)**

* …

*(please also add ideas, questions or examples in comments)*

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.