Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/observability / / tryGetValidatorCounters

Function: tryGetValidatorCounters()

ts
function tryGetValidatorCounters(validator): RedactionCounters;

Defined in: packages/observability/src/exporters/with-validation.ts:160

Pull the counters out of any exporter wrapped by withValidation. Returns null for exporters that were never wrapped.

Parameters

ParameterType
validatorRedactionValidatorInstance

Returns

RedactionCounters

Stable