Skip to content

Commit 2ce6aff

Browse files
chargomeclaude
andcommitted
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 <noreply@anthropic.com>
1 parent d93241f commit 2ce6aff

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

  • dev-packages/node-integration-tests/suites/tracing/amqplib
  • packages/server-utils/src/orchestrion/config

‎dev-packages/node-integration-tests/suites/tracing/amqplib/test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ describeWithDockerCompose('amqplib auto-instrumentation', { workingDirectory: [_
4949
});
5050

5151
describe.each([
52+
['v0', {}],
5253
['v1', { amqplib: '^1.0.0' }],
53-
['v2', {}],
54+
['v2', { amqplib: '^2.0.0' }],
5455
])('%s', (_version, additionalDependencies) => {
5556
createEsmAndCjsTests(
5657
__dirname,

‎packages/server-utils/src/orchestrion/config/amqplib.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getModuleNames } from './module-names';
1212
// to capture connection attributes.
1313
//
1414
// The version range mirrors `supportedVersions` in the vendored OTel instrumentation.
15-
const module = { name: 'amqplib', versionRange: '>=0.5.5 <2' } as const;
15+
const module = { name: 'amqplib', versionRange: '>=0.5.5 <3' } as const;
1616

1717
export const amqplibConfig = [
1818
// Producer span + trace-header injection. `sendToQueue` delegates to `publish`, so it's covered.

0 commit comments

Comments
 (0)