Skip to content

Commit

Permalink
better version ranges for aerospike
Browse files Browse the repository at this point in the history
  • Loading branch information
bengl committed Aug 30, 2024
1 parent 1a43398 commit f302e1e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
- node-version: 20
range: '>=5.8.0'
aerospike-image: ce-6.4.0.3
- node-version: latest
range: '>=5.8.0'
aerospike-image: ce-6.4.0.3
runs-on: ubuntu-latest
services:
aerospike:
Expand Down
6 changes: 4 additions & 2 deletions packages/datadog-instrumentations/src/aerospike.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,17 @@ function wrapProcess (process) {
}

const versions = (() => {

switch (NODE_MAJOR) {
case 16:
case 17:
return ['>=4 <5.2.0']
case 18:
case 19:
return ['5.2.0 - 5.7.0']
case 20:
return ['>=5.8.0']
default:
return []
return ['>=5.8.0']
}
})()

Expand Down

0 comments on commit f302e1e

Please sign in to comment.