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
29 lines
972 B
Plaintext
29 lines
972 B
Plaintext
import type { UnleashClientClass } from './types';
|
|
type UnleashIntegrationOptions = {
|
|
featureFlagClientClass: UnleashClientClass;
|
|
};
|
|
/**
|
|
* Sentry integration for capturing feature flag evaluations from the Unleash SDK.
|
|
*
|
|
* See the [feature flag documentation](https://develop.sentry.dev/sdk/expected-features/#feature-flags) for more information.
|
|
*
|
|
* @example
|
|
* ```
|
|
* import { UnleashClient } from 'unleash-proxy-client';
|
|
* import * as Sentry from '@sentry/browser';
|
|
*
|
|
* Sentry.init({
|
|
* dsn: '___PUBLIC_DSN___',
|
|
* integrations: [Sentry.unleashIntegration({featureFlagClientClass: UnleashClient})],
|
|
* });
|
|
*
|
|
* const unleash = new UnleashClient(...);
|
|
* unleash.start();
|
|
*
|
|
* unleash.isEnabled('my-feature');
|
|
* Sentry.captureException(new Error('something went wrong'));
|
|
* ```
|
|
*/
|
|
export declare const unleashIntegration: (args_0: UnleashIntegrationOptions) => import("@sentry/core").Integration;
|
|
export {};
|
|
//# sourceMappingURL=integration.d.ts.map |