Files
klz-cables.com/.pnpm-store/v10/files/fa/e7f1a1ff90243b0b8b39b6fb7f016d0d6de5b65e2b5614ebec49630ef86f19bb21982ba8f5df7e4df289b79a36b8c5013d294697fbf8b1e2533f01b98dbb20
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

47 lines
1.3 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const instrumentationMysql2 = require('@opentelemetry/instrumentation-mysql2');
const core = require('@sentry/core');
const nodeCore = require('@sentry/node-core');
const INTEGRATION_NAME = 'Mysql2';
const instrumentMysql2 = nodeCore.generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new instrumentationMysql2.MySQL2Instrumentation({
responseHook(span) {
nodeCore.addOriginToSpan(span, 'auto.db.otel.mysql2');
},
}),
);
const _mysql2Integration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
instrumentMysql2();
},
};
}) ;
/**
* Adds Sentry tracing instrumentation for the [mysql2](https://www.npmjs.com/package/mysql2) library.
*
* For more information, see the [`mysql2Integration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mysql2/).
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.mysqlIntegration()],
* });
* ```
*/
const mysql2Integration = core.defineIntegration(_mysql2Integration);
exports.instrumentMysql2 = instrumentMysql2;
exports.mysql2Integration = mysql2Integration;
//# sourceMappingURL=mysql2.js.map