@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
23 lines (19 loc) • 829 B
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const instrumentation = require('./vendored/instrumentation.js');
const core = require('@sentry/core');
const nodeCore = require('@sentry/node-core');
const serverUtils = require('@sentry/server-utils');
const INTEGRATION_NAME = "Mysql2";
const instrumentMysql2 = nodeCore.generateInstrumentOnce(INTEGRATION_NAME, () => new instrumentation.MySQL2Instrumentation());
const _mysql2Integration = (() => {
return core.extendIntegration(serverUtils.mysql2Integration(), {
name: INTEGRATION_NAME,
setupOnce() {
instrumentMysql2();
}
});
});
const mysql2Integration = core.defineIntegration(_mysql2Integration);
exports.instrumentMysql2 = instrumentMysql2;
exports.mysql2Integration = mysql2Integration;
//# sourceMappingURL=index.js.map