decord/source/1103_buildLaunchDarklyFlagUsedHandler.js
2026-07-29 08:29:29 +00:00

29 lines
990 B
JavaScript

// Module ID: 1103
// Function ID: 1104
// Name: buildLaunchDarklyFlagUsedHandler
// Dependencies: [817]
// Exports: buildLaunchDarklyFlagUsedHandler
// Module 1103 (buildLaunchDarklyFlagUsedHandler)
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
export function buildLaunchDarklyFlagUsedHandler() {
return {
name: "sentry-flag-auditor",
type: "flag-used",
synchronous: true,
method(closure_2) {
const result = callback(817)._INTERNAL_insertFlagToScope(closure_2, arg1.value);
const obj = callback(817);
const result1 = callback(817)._INTERNAL_addFeatureFlagToActiveSpan(closure_2, arg1.value);
}
};
}
export const launchDarklyIntegration = registerSpanErrorInstrumentation.defineIntegration(() => ({
name: "LaunchDarkly",
processEvent(contexts) {
return callback(table[0])._INTERNAL_copyFlagsFromScopeToEvent(contexts);
}
}));