UNPKG

659 BTypeScriptView Raw
1export declare const instrumentMongoose: ((options?: unknown) => void) & {
2 id: string;
3};
4/**
5 * Adds Sentry tracing instrumentation for the [mongoose](https://www.npmjs.com/package/mongoose) library.
6 *
7 * For more information, see the [`mongooseIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mongoose/).
8 *
9 * @example
10 * ```javascript
11 * const Sentry = require('@sentry/node');
12 *
13 * Sentry.init({
14 * integrations: [Sentry.mongooseIntegration()],
15 * });
16 * ```
17 */
18export declare const mongooseIntegration: () => import("@sentry/core").Integration;
19//# sourceMappingURL=mongoose.d.ts.map
\No newline at end of file