Files
klz-cables.com/.pnpm-store/v10/files/2e/dbaf8efde75f47127012332adc2ac22fe773fcc78dc5a46259ac9a198280b9aa2fe3868e997d78661271ef80397cb24492b67e0e24f1fb7210210039eacf84
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

47 lines
1.3 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const instrumentationMongoose = require('@opentelemetry/instrumentation-mongoose');
const core = require('@sentry/core');
const nodeCore = require('@sentry/node-core');
const INTEGRATION_NAME = 'Mongoose';
const instrumentMongoose = nodeCore.generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new instrumentationMongoose.MongooseInstrumentation({
responseHook(span) {
nodeCore.addOriginToSpan(span, 'auto.db.otel.mongoose');
},
}),
);
const _mongooseIntegration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
instrumentMongoose();
},
};
}) ;
/**
* Adds Sentry tracing instrumentation for the [mongoose](https://www.npmjs.com/package/mongoose) library.
*
* For more information, see the [`mongooseIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mongoose/).
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.mongooseIntegration()],
* });
* ```
*/
const mongooseIntegration = core.defineIntegration(_mongooseIntegration);
exports.instrumentMongoose = instrumentMongoose;
exports.mongooseIntegration = mongooseIntegration;
//# sourceMappingURL=mongoose.js.map