UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

27 lines (23 loc) 968 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const core = require('@sentry/core'); const nodeCore = require('@sentry/node-core'); const orchestrion = require('@sentry/server-utils/orchestrion'); const instrumentation = require('./vendored/instrumentation.js'); const INTEGRATION_NAME = "Dataloader"; const instrumentDataloader = nodeCore.generateInstrumentOnce(INTEGRATION_NAME, () => new instrumentation.DataloaderInstrumentation()); const _dataloaderIntegration = (() => { return { name: INTEGRATION_NAME, setupOnce() { if (orchestrion.isOrchestrionInjected()) { orchestrion.dataloaderChannelIntegration().setupOnce?.(); } else { instrumentDataloader(); } } }; }); const dataloaderIntegration = core.defineIntegration(_dataloaderIntegration); exports.dataloaderIntegration = dataloaderIntegration; exports.instrumentDataloader = instrumentDataloader; //# sourceMappingURL=index.js.map