Files
klz-cables.com/.pnpm-store/v10/files/79/cb31a9f025ba40571bed4bd4e3d872a266926e1219d99292477ddefabe83e8cd05ca0bfc73c40d970553b2efb986a1bf5b4ddaa0b050a91f0d275624ff7b2c
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

48 lines
1.3 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const instrumentationPg = require('@opentelemetry/instrumentation-pg');
const core = require('@sentry/core');
const nodeCore = require('@sentry/node-core');
const INTEGRATION_NAME = 'Postgres';
const instrumentPostgres = nodeCore.generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new instrumentationPg.PgInstrumentation({
requireParentSpan: true,
requestHook(span) {
nodeCore.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 = core.defineIntegration(_postgresIntegration);
exports.instrumentPostgres = instrumentPostgres;
exports.postgresIntegration = postgresIntegration;
//# sourceMappingURL=postgres.js.map