From 2ce6affc7f632314eae51601836553de1b93bc44 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Wed, 23 Sep 2026 15:11:52 +0200 Subject: [PATCH] feat(server-utils): Support amqplib v2 Widen the amqplib range to <3 and add 2.x to the integration test matrix. Co-Authored-By: Claude Opus 5.5 --- .../node-integration-tests/suites/tracing/amqplib/test.ts | 3 ++- packages/server-utils/src/orchestrion/config/amqplib.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-packages/node-integration-tests/suites/tracing/amqplib/test.ts b/dev-packages/node-integration-tests/suites/tracing/amqplib/test.ts index 301f5520f553..fade84b952a4 100644 --- a/dev-packages/node-integration-tests/suites/tracing/amqplib/test.ts +++ b/dev-packages/node-integration-tests/suites/tracing/amqplib/test.ts @@ -49,8 +49,9 @@ describeWithDockerCompose('amqplib auto-instrumentation', { workingDirectory: [_ }); describe.each([ + ['v0', {}], ['v1', { amqplib: '^1.0.0' }], - ['v2', {}], + ['v2', { amqplib: '^2.0.0' }], ])('%s', (_version, additionalDependencies) => { createEsmAndCjsTests( __dirname, diff --git a/packages/server-utils/src/orchestrion/config/amqplib.ts b/packages/server-utils/src/orchestrion/config/amqplib.ts index e5e6e5439484..a8f0e4fe61b4 100644 --- a/packages/server-utils/src/orchestrion/config/amqplib.ts +++ b/packages/server-utils/src/orchestrion/config/amqplib.ts @@ -12,7 +12,7 @@ import { getModuleNames } from './module-names'; // to capture connection attributes. // // The version range mirrors `supportedVersions` in the vendored OTel instrumentation. -const module = { name: 'amqplib', versionRange: '>=0.5.5 <2' } as const; +const module = { name: 'amqplib', versionRange: '>=0.5.5 <3' } as const; export const amqplibConfig = [ // Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.