Skip to content

Cloudflare instrument rate limiter #20871

@JPeer264

Description

@JPeer264

Problem Statement

Right now we don't have tracing for the rate limiter

Docs: https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/

Solution Brainstorm

We would need to add tracing if a rate limit has been achieved. Maybe a good candidate for metrics as well

Additional Context

The interface looks like the following:

interface RateLimitOutcome {
    success: boolean;
}
interface RateLimit {
    /**
     * Rate limit a request based on the provided options.
     * @see https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/
     * @returns A promise that resolves with the outcome of the rate limit.
     */
    limit(options: RateLimitOptions): Promise<RateLimitOutcome>;
}

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions