addCounter( fn: CallableFunction, counterConfiguration: CounterConfiguration<string>,): (...args: unknown[]) => Promise<any> Parameters
- fn: CallableFunction
- counterConfiguration: CounterConfiguration<string>
Returns (...args: unknown[]) => Promise<any>
Wraps a function and creates a metric that counts how many times it was called