decord/source/1107_statsigIntegration.js

27 lines
963 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1107
// Function ID: 1108
2026-07-20 16:05:17 +00:00
// Name: statsigIntegration
2026-07-29 08:29:29 +00:00
// Dependencies: [817]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 1107 (statsigIntegration)
2026-08-24 06:08:38 +00:00
import registerSpanErrorInstrumentation from "registerSpanErrorInstrumentation" /* 817 */;
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2026-07-23 10:11:24 +00:00
export const statsigIntegration = registerSpanErrorInstrumentation.defineIntegration((featureFlagClient) => {
featureFlagClient = featureFlagClient.featureFlagClient;
2026-07-20 16:05:17 +00:00
return {
name: "Statsig",
setup(arg0) {
featureFlagClient.on("gate_evaluation", (gate) => {
2026-07-29 08:29:29 +00:00
const result = callback(817)._INTERNAL_insertFlagToScope(gate.gate.name, gate.gate.value);
const obj = callback(817);
const result1 = callback(817)._INTERNAL_addFeatureFlagToActiveSpan(gate.gate.name, gate.gate.value);
2026-07-20 16:05:17 +00:00
});
},
processEvent(contexts) {
2026-07-29 08:29:29 +00:00
return featureFlagClient(table[0])._INTERNAL_copyFlagsFromScopeToEvent(contexts);
2026-07-20 16:05:17 +00:00
}
};
});