MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / disabledUntil

Function disabledUntil

packages/core/src/utils/ratelimit.ts:37–39  ·  view source on GitHub ↗
(limits: RateLimits, dataCategory: DataCategory)

Source from the content-addressed store, hash-verified

35 * @return the time in ms that the category is disabled until or 0 if there's no active rate limit.
36 */
37export function disabledUntil(limits: RateLimits, dataCategory: DataCategory): number {
38 return limits[dataCategory] || limits.all || 0;
39}
40
41/**
42 * Checks if a category is rate limited

Callers 2

ratelimit.test.tsFile · 0.90
isRateLimitedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected