@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
29 lines (26 loc) • 786 B
JavaScript
import { defineIntegration, isBrowser, consoleSandbox } from '@sentry/core';
const launchDarklyIntegrationShim = defineIntegration((_options) => {
if (!isBrowser()) {
consoleSandbox(() => {
console.warn("The launchDarklyIntegration() can only be used in the browser.");
});
}
return {
name: "LaunchDarkly"
};
});
function buildLaunchDarklyFlagUsedHandlerShim() {
if (!isBrowser()) {
consoleSandbox(() => {
console.warn("The buildLaunchDarklyFlagUsedHandler() can only be used in the browser.");
});
}
return {
name: "sentry-flag-auditor",
type: "flag-used",
synchronous: true,
method: () => null
};
}
export { buildLaunchDarklyFlagUsedHandlerShim, launchDarklyIntegrationShim };
//# sourceMappingURL=launchDarkly.js.map