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
30 lines
906 B
Plaintext
30 lines
906 B
Plaintext
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const core = require('@sentry/core');
|
|
|
|
/**
|
|
* Sentry integration for capturing feature flag evaluations from GrowthBook.
|
|
*
|
|
* See the feature flag documentation: https://develop.sentry.dev/sdk/expected-features/#feature-flags
|
|
*
|
|
* @example
|
|
* ```
|
|
* import { GrowthBook } from '@growthbook/growthbook';
|
|
* import * as Sentry from '@sentry/browser';
|
|
*
|
|
* Sentry.init({
|
|
* dsn: '___PUBLIC_DSN___',
|
|
* integrations: [Sentry.growthbookIntegration({ growthbookClass: GrowthBook })],
|
|
* });
|
|
*
|
|
* const gb = new GrowthBook();
|
|
* gb.isOn('my-feature');
|
|
* Sentry.captureException(new Error('something went wrong'));
|
|
* ```
|
|
*/
|
|
const growthbookIntegration = (({ growthbookClass }) =>
|
|
core.growthbookIntegration({ growthbookClass })) ;
|
|
|
|
exports.growthbookIntegration = growthbookIntegration;
|
|
//# sourceMappingURL=integration.js.map
|