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
30 lines
864 B
Plaintext
30 lines
864 B
Plaintext
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const core = require('@sentry/core');
|
|
const instrument = require('../../otel/instrument.js');
|
|
const SentryNodeFetchInstrumentation = require('./SentryNodeFetchInstrumentation.js');
|
|
|
|
const INTEGRATION_NAME = 'NodeFetch';
|
|
|
|
const instrumentSentryNodeFetch = instrument.generateInstrumentOnce(
|
|
`${INTEGRATION_NAME}.sentry`,
|
|
SentryNodeFetchInstrumentation.SentryNodeFetchInstrumentation,
|
|
(options) => {
|
|
return options;
|
|
},
|
|
);
|
|
|
|
const _nativeNodeFetchIntegration = ((options = {}) => {
|
|
return {
|
|
name: 'NodeFetch',
|
|
setupOnce() {
|
|
instrumentSentryNodeFetch(options);
|
|
},
|
|
};
|
|
}) ;
|
|
|
|
const nativeNodeFetchIntegration = core.defineIntegration(_nativeNodeFetchIntegration);
|
|
|
|
exports.nativeNodeFetchIntegration = nativeNodeFetchIntegration;
|
|
//# sourceMappingURL=index.js.map
|