Rocky_Mountain_Vending/.pnpm-store/v10/files/9d/e64185a8a5a67facd02f3929eb19ed18443323af82db21135248f4862e223b415bb960afcfebebd93c8be6b4883c0bd88e9ab9916634140d6b78ef2b7ac775
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

44 lines
1.2 KiB
Text

import { PgInstrumentation } from '@opentelemetry/instrumentation-pg';
import { defineIntegration } from '@sentry/core';
import { generateInstrumentOnce, addOriginToSpan } from '@sentry/node-core';
const INTEGRATION_NAME = 'Postgres';
const instrumentPostgres = generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new PgInstrumentation({
requireParentSpan: true,
requestHook(span) {
addOriginToSpan(span, 'auto.db.otel.postgres');
},
}),
);
const _postgresIntegration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
instrumentPostgres();
},
};
}) ;
/**
* 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()],
* });
* ```
*/
const postgresIntegration = defineIntegration(_postgresIntegration);
export { instrumentPostgres, postgresIntegration };
//# sourceMappingURL=postgres.js.map