MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / collect

Function collect

apps/worker/src/metrics.ts:45–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 name: `${queue.name.replace(/[{}]/g, '')}_active_count`,
44 help: 'Active count',
45 async collect() {
46 const metric = await queue.getActiveCount();
47 this.set(metric);
48 },
49 })
50 );
51

Callers

nothing calls this directly

Calls 5

getRedisCacheFunction · 0.90
getBufferSizeMethod · 0.80
getPendingLocalCountMethod · 0.80
setMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected