Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
import type { LDInspectionFlagUsedHandler } from './types';
|
|
/**
|
|
* Sentry integration for capturing feature flag evaluations from LaunchDarkly.
|
|
*
|
|
* See the [feature flag documentation](https://develop.sentry.dev/sdk/expected-features/#feature-flags) for more information.
|
|
*
|
|
* @example
|
|
* ```
|
|
* import * as Sentry from '@sentry/browser';
|
|
* import {launchDarklyIntegration, buildLaunchDarklyFlagUsedInspector} from '@sentry/browser';
|
|
* import * as LaunchDarkly from 'launchdarkly-js-client-sdk';
|
|
*
|
|
* Sentry.init(..., integrations: [launchDarklyIntegration()])
|
|
* const ldClient = LaunchDarkly.initialize(..., {inspectors: [buildLaunchDarklyFlagUsedHandler()]});
|
|
* ```
|
|
*/
|
|
export declare const launchDarklyIntegration: () => import("@sentry/core").Integration;
|
|
/**
|
|
* LaunchDarkly hook to listen for and buffer flag evaluations. This needs to
|
|
* be registered as an 'inspector' in LaunchDarkly initialize() options,
|
|
* separately from `launchDarklyIntegration`. Both the hook and the integration
|
|
* are needed to capture LaunchDarkly flags.
|
|
*/
|
|
export declare function buildLaunchDarklyFlagUsedHandler(): LDInspectionFlagUsedHandler;
|
|
//# sourceMappingURL=integration.d.ts.map |