Skip to content

Commit 5837997

Browse files
feat(instrumentation-kafkajs)!: add .tav.yml and narrow support range to (>=0.3.0 <3) (#2758)
Co-authored-by: Marc Pichler <[email protected]>
1 parent a7763a1 commit 5837997

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kafkajs:
2+
- versions:
3+
include: ">=0.3.0 <3"
4+
mode: latest-minors
5+
commands: npm run test

plugins/node/instrumentation-kafkajs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm install --save @opentelemetry/instrumentation-kafkajs
1717

1818
### Supported versions
1919

20-
- [`kafkajs`](https://www.npmjs.com/package/kafkajs) versions `>=0.1.0 <3`
20+
- [`kafkajs`](https://www.npmjs.com/package/kafkajs) versions `>=0.3.0 <3`
2121

2222
## Usage
2323

plugins/node/instrumentation-kafkajs/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"repository": "open-telemetry/opentelemetry-js-contrib",
88
"scripts": {
99
"test": "mocha --require @opentelemetry/contrib-test-utils 'test/**/*.test.ts'",
10+
"test-all-versions": "tav",
1011
"tdd": "npm run test -- --watch-extensions ts --watch",
1112
"clean": "rimraf build/*",
1213
"lint": "eslint . --ext .ts",
@@ -52,6 +53,7 @@
5253
"nyc": "15.1.0",
5354
"rimraf": "5.0.10",
5455
"sinon": "15.2.0",
56+
"test-all-versions": "6.1.0",
5557
"typescript": "5.0.4"
5658
},
5759
"dependencies": {

plugins/node/instrumentation-kafkajs/src/instrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class KafkaJsInstrumentation extends InstrumentationBase<KafkaJsInstrumen
7171

7272
const module = new InstrumentationNodeModuleDefinition(
7373
'kafkajs',
74-
['>=0.1.0 <3'],
74+
['>=0.3.0 <3'],
7575
(moduleExports: typeof kafkaJs) => {
7676
unpatch(moduleExports);
7777
this._wrap(

0 commit comments

Comments
 (0)