@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
20 lines • 761 B
TypeScript
import { MongooseInstrumentation } from '@opentelemetry/instrumentation-mongoose';
export declare const instrumentMongoose: ((options?: unknown) => MongooseInstrumentation) & {
id: string;
};
/**
* 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()],
* });
* ```
*/
export declare const mongooseIntegration: () => import("@sentry/core").Integration;
//# sourceMappingURL=mongoose.d.ts.map