Dokumentation
IntegrationQuick Start

Quick Start

1. Get Your API Key

  1. Go to your Organization Settings in the NoiseGate dashboard
  2. Navigate to NoiseGate → API Key
  3. Click Generate API Key
  4. Copy and save your key (starts with ng_live_)

2. Install the SDK

npm install @noisegate/sdk

3. Add to Your Sentry Config

import * as Sentry from "@sentry/browser";
import { initNoisegate, isNoise } from "@noisegate/sdk";

// Initialize once (auto-loads patterns)
initNoisegate({ apiKey: "ng_live_your_api_key" });

Sentry.init({
  dsn: "YOUR_SENTRY_DSN",
  beforeSend: (event, hint) => {
    const error = hint?.originalException;
    if (error instanceof Error && isNoise(error)) {
      return null; // Filter out noise
    }
    return event;
  },
});

That's it! NoiseGate will automatically filter common noise errors.

4. Verify Integration

Trigger a test error that should be filtered:

// This common browser error should be filtered
throw new Error("ResizeObserver loop completed with undelivered notifications");

Check your Sentry dashboard—the error should not appear.

5. Configure Filters (Optional)

In your NoiseGate dashboard:

  • Enable/disable catalog patterns by category
  • Adjust confidence threshold to control filter sensitivity
  • Add custom patterns for app-specific noise

Next Steps