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

45 lines
1.3 KiB
Plaintext

import { AmqplibInstrumentation } from '@opentelemetry/instrumentation-amqplib';
import { defineIntegration } from '@sentry/core';
import { generateInstrumentOnce, addOriginToSpan } from '@sentry/node-core';
const INTEGRATION_NAME = 'Amqplib';
const config = {
consumeEndHook: (span) => {
addOriginToSpan(span, 'auto.amqplib.otel.consumer');
},
publishHook: (span) => {
addOriginToSpan(span, 'auto.amqplib.otel.publisher');
},
};
const instrumentAmqplib = generateInstrumentOnce(INTEGRATION_NAME, () => new AmqplibInstrumentation(config));
const _amqplibIntegration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
instrumentAmqplib();
},
};
}) ;
/**
* Adds Sentry tracing instrumentation for the [amqplib](https://www.npmjs.com/package/amqplib) library.
*
* For more information, see the [`amqplibIntegration` documentation](https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/amqplib/).
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.amqplibIntegration()],
* });
* ```
*/
const amqplibIntegration = defineIntegration(_amqplibIntegration);
export { amqplibIntegration, instrumentAmqplib };
//# sourceMappingURL=amqplib.js.map