Files
klz-cables.com/.pnpm-store/v10/files/b9/09e7d6a730e075df33c35fb2e29922f048dd91c6e02251a6be52b214b04423055c2fdb227e402f97f542cd6b2eca146971dfed7b81d6d275b5c438fd1ff9a6
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

44 lines
1.1 KiB
Plaintext

import { MySQL2Instrumentation } from '@opentelemetry/instrumentation-mysql2';
import { defineIntegration } from '@sentry/core';
import { generateInstrumentOnce, addOriginToSpan } from '@sentry/node-core';
const INTEGRATION_NAME = 'Mysql2';
const instrumentMysql2 = generateInstrumentOnce(
INTEGRATION_NAME,
() =>
new MySQL2Instrumentation({
responseHook(span) {
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 = defineIntegration(_mysql2Integration);
export { instrumentMysql2, mysql2Integration };
//# sourceMappingURL=mysql2.js.map