Skip to content

Commit

Permalink
Merge branch 'main' into single-reporter-across-adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlogic committed May 24, 2024
2 parents 8c341bb + 8690560 commit 3ecae1f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bullmq/src/adapter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const { defaultConfig } = require('judoscale-node-core')

class Adapter {
constructor(collectors) {
this.collectors = collectors
this.identifier = 'judoscale-bullmq'
this.adapter_version = defaultConfig.version
this.language_version = process.version
}

asJson() {
const data = {}
data[this.identifier] = {
adapter_version: this.adapter_version,
language_version: this.language_version,
}

return data
}
}

module.exports = Adapter

0 comments on commit 3ecae1f

Please sign in to comment.