Rocky_Mountain_Vending/.pnpm-store/v10/files/82/90ed2d66082ff4f1d17f5bb97d460fa90f9e4a083754678a2c2e9f15ea4dfa0b1bb4f1e5497e194071ec6d94f952f0b387e7bdd3fcdc9dad69fe7e02943b0e
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

43 lines
1.2 KiB
Text

import { MongooseInstrumentation } from '@opentelemetry/instrumentation-mongoose';
import { defineIntegration } from '@sentry/core';
import { generateInstrumentOnce, addOriginToSpan } from '@sentry/node-core';
const INTEGRATION_NAME = 'Mongoose';
const instrumentMongoose = generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new MongooseInstrumentation({
responseHook(span) {
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 = defineIntegration(_mongooseIntegration);
export { instrumentMongoose, mongooseIntegration };
//# sourceMappingURL=mongoose.js.map