Skip to content

Commit

Permalink
fixups post reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 15, 2024
1 parent 6b10225 commit 687bc08
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CountItems/CountManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ class CountManager {
const processingStartTime = process.hrtime.bigint();
return this.workers[id].count(bucketInfo, (err, res) => {
const processingDuration = Number(process.hrtime.bigint() - processingStartTime) / 1e9;
monitoring.bucketProcessingDuration.labels({
service: 'countItems',
}).observe(processingDuration);
monitoring.bucketProcessingDuration.observe(processingDuration);
this.log.info('processing a bucket', {
method: 'CountManager::_setupQueue',
workInQueue: this.q.length(),
Expand Down Expand Up @@ -119,9 +117,7 @@ class CountManager {
this.dataMetrics = results.dataMetrics;
}
const consolidationDurationInS = Number(process.hrtime.bigint() - startTime) / 1e9;
monitoring.consolidationDuration.labels({
service: 'countItems',
}).observe(consolidationDurationInS);
monitoring.consolidationDuration.observe(consolidationDurationInS);
}

setup(callback) {
Expand Down

0 comments on commit 687bc08

Please sign in to comment.