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

36 lines
1.0 KiB
Plaintext

import { MySQLInstrumentation } from '@opentelemetry/instrumentation-mysql';
import { defineIntegration } from '@sentry/core';
import { generateInstrumentOnce } from '@sentry/node-core';
const INTEGRATION_NAME = 'Mysql';
const instrumentMysql = generateInstrumentOnce(INTEGRATION_NAME, () => new MySQLInstrumentation({}));
const _mysqlIntegration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
instrumentMysql();
},
};
}) ;
/**
* Adds Sentry tracing instrumentation for the [mysql](https://www.npmjs.com/package/mysql) library.
*
* For more information, see the [`mysqlIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/mysql/).
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.mysqlIntegration()],
* });
* ```
*/
const mysqlIntegration = defineIntegration(_mysqlIntegration);
export { instrumentMysql, mysqlIntegration };
//# sourceMappingURL=mysql.js.map