Index of every page on this site: llms.txt
All skills
Run it yourself

Manage Sentry rate limits, quotas, and event volume optimization. Use when hitting 429 errors, tuning sampleRate/tracesSampleRate, filtering noisy browser errors with beforeSend, configuring inbound data filters, setting per-key rate limits, or monitoring quota usage via the Sentry stats API. Trigger: "sentry rate limit", "sentry quota", "reduce sentry events", "sentry 429", "sentry spike protection", "sentry sampling".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-rate-limits

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesstrategies-to-reduce-event-volume.md

≈584 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Strategies To Reduce Event Volume

Strategies to Reduce Event Volume

1. Error Sampling

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  // Sample 10% of errors
  sampleRate: 0.1,

  // Or use dynamic sampling
  beforeSend(event, hint) {
    // Always send critical errors
    if (event.level === 'fatal') return event;

    // Sample other errors
    if (Math.random() > 0.1) return null;
    return event;
  },
});

2. Transaction Sampling

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  // Sample 5% of transactions
  tracesSampleRate: 0.05,

  // Or dynamic sampling
  tracesSampler: (ctx) => {
    // Always trace errors
    if (ctx.parentSampled) return true;

    // Skip health checks
    if (ctx.transactionContext.name.includes('health')) return 0;

    // Lower rate for high-volume endpoints
    if (ctx.transactionContext.name.includes('/api/')) return 0.01;

    return 0.1;
  },
});

3. Ignore Common Errors

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  ignoreErrors: [
    // Browser errors
    'ResizeObserver loop limit exceeded',
    'ResizeObserver loop completed with undelivered notifications',

    // Network errors
    'Network request failed',
    'Failed to fetch',
    'Load failed',

    // User-caused
    'User aborted',
    'AbortError',
  ],

  denyUrls: [
    // Third-party scripts
    /extensions\//i,
    /^chrome:\/\//i,
    /^moz-extension:\/\//i,
  ],
});

4. Deduplication

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  integrations: [
    new Sentry.Integrations.Dedupe(),
  ],

  // Custom fingerprinting for grouping
  beforeSend(event) {
    if (event.exception?.values?.[0]?.type === 'NetworkError') {
      event.fingerprint = ['network-error', event.request?.url];
    }
    return event;
  },
});

5. Client-Side Filtering

Sentry.init({
  dsn: process.env.SENTRY_DSN,

  beforeSend(event, hint) {
    const error = hint.originalException;

    // Don't send validation errors
    if (error?.name === 'ValidationError') return null;

    // Don't send 4xx client errors
    if (error?.status >= 400 && error?.status < 500) return null;

    // Don't send during development
    if (process.env.NODE_ENV === 'development') return null;

    return event;
  },
});

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides documentation and implementation patterns for managing Sentry rate limits and observability costs. It uses official Sentry API endpoints and standard SDK configuration methods without any detected malicious patterns or security risks.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 9 allowed tools
ReadWriteEditGrepGlobBash(curl:*)Bash(node:*)Bash(python3:*)Bash(pip:*)
Other metadata
tags
[
  "saas",
  "sentry",
  "cost-optimization",
  "rate-limiting",
  "quotas",
  "observability"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-rate-limits