Skip to content

Commit

Permalink
fix: no separate metric for task queue needed
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 committed Oct 7, 2024
1 parent 38245d3 commit 33816d5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/core/src/ancillary/task-queue.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import PQueue from 'p-queue'
import { ServiceMetrics as Metrics } from '@ceramicnetwork/observability'

const TASK_QUEUE_SIZE = 'task_queue_size'
const TASK_QUEUE_SIZE_PENDING = 'task_queue_size_pending'

export const noop = () => {
// Do Nothing
Expand Down Expand Up @@ -56,8 +52,6 @@ export class TaskQueue implements TaskQueueLike {
* Size of the queue. Counts both deferred and currently running tasks.
*/
get size(): number {
Metrics.observe(TASK_QUEUE_SIZE, this.#pq.size)
Metrics.observe(TASK_QUEUE_SIZE_PENDING, this.#pq.pending)
return this.#pq.size + this.#pq.pending
}

Expand Down

0 comments on commit 33816d5

Please sign in to comment.