UNPKG

@sentry/node

Version:

Sentry Node SDK using OpenTelemetry for performance instrumentation

24 lines 895 B
import { PgInstrumentation } from '@opentelemetry/instrumentation-pg'; interface PostgresIntegrationOptions { ignoreConnectSpans?: boolean; } export declare const instrumentPostgres: ((options: PostgresIntegrationOptions | undefined) => PgInstrumentation) & { id: string; }; /** * Adds Sentry tracing instrumentation for the [pg](https://www.npmjs.com/package/pg) library. * * For more information, see the [`postgresIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/postgres/). * * @example * ```javascript * const Sentry = require('@sentry/node'); * * Sentry.init({ * integrations: [Sentry.postgresIntegration()], * }); * ``` */ export declare const postgresIntegration: (options?: PostgresIntegrationOptions | undefined) => import("@sentry/core").Integration; export {}; //# sourceMappingURL=postgres.d.ts.map