Files
klz-cables.com/.pnpm-store/v10/files/47/3b8e43f6e637898d0c803c0c6c83376dc286c4ba19e6e8c3fcdf5b73705cc099951f083917121ffbce543b97d5bf9b266da4f4ee2e5a4a560ddd308bc7333e
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

49 lines
1.5 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
/**
* Sentry integration for capturing feature flag evaluations from the Statsig js-client SDK.
*
* See the [feature flag documentation](https://develop.sentry.dev/sdk/expected-features/#feature-flags) for more information.
*
* @example
* ```
* import { StatsigClient } from '@statsig/js-client';
* import * as Sentry from '@sentry/browser';
*
* const statsigClient = new StatsigClient();
*
* Sentry.init({
* dsn: '___PUBLIC_DSN___',
* integrations: [Sentry.statsigIntegration({featureFlagClient: statsigClient})],
* });
*
* await statsigClient.initializeAsync(); // or statsigClient.initializeSync();
*
* const result = statsigClient.checkGate('my-feature-gate');
* Sentry.captureException(new Error('something went wrong'));
* ```
*/
const statsigIntegration = core.defineIntegration(
({ featureFlagClient: statsigClient }) => {
return {
name: 'Statsig',
setup(_client) {
statsigClient.on('gate_evaluation', (event) => {
core._INTERNAL_insertFlagToScope(event.gate.name, event.gate.value);
core._INTERNAL_addFeatureFlagToActiveSpan(event.gate.name, event.gate.value);
});
},
processEvent(event, _hint, _client) {
return core._INTERNAL_copyFlagsFromScopeToEvent(event);
},
};
},
) ;
exports.statsigIntegration = statsigIntegration;
//# sourceMappingURL=integration.js.map