Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/server / / syncToolCounters

Function: syncToolCounters()

ts
function syncToolCounters(registry, snapshot?): void;

Defined in: packages/server/src/metrics/tools-bridge.ts:38

Sync the tools-package counter snapshot into registry. Idempotent per value: scraping twice without new increments changes nothing.

Parameters

ParameterType
registryMetricRegistry
snapshotCounterSnapshot

Returns

void

Stable