UNPKG

821 BTypeScriptView Raw
1export declare const instrumentMongo: ((options?: unknown) => void) & {
2 id: string;
3};
4/**
5 * Replaces values in document with '?', hiding PII and helping grouping.
6 */
7export declare function _defaultDbStatementSerializer(commandObj: Record<string, unknown>): string;
8/**
9 * Adds Sentry tracing instrumentation for the [mongodb](https://www.npmjs.com/package/mongodb) library.
10 *
11 * For more information, see the [`mongoIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mongo/).
12 *
13 * @example
14 * ```javascript
15 * const Sentry = require('@sentry/node');
16 *
17 * Sentry.init({
18 * integrations: [Sentry.mongoIntegration()],
19 * });
20 * ```
21 */
22export declare const mongoIntegration: () => import("@sentry/core").Integration;
23//# sourceMappingURL=mongo.d.ts.map
\No newline at end of file