Creates logs, counters and timings for methods that call instrument.
Description
The InstrumentTiming class allows you to create logs, countes and timings for methods that call instrument.
Constructors
Creates a new instance of InstrumentTiming.
InstrumentTiming(String? correlationId, String name, String? verb, ILogger? logger, ICounters? counters, CounterTiming? counterTiming, TraceTiming? traceTiming)
- correlationId: String? - transaction id used to trace execution through the call chain.
- name: String - name
- verb: String? - verb or ‘call’
- logger: ILogger? - logger
- counters: ICounters? - counters
- counterTiming: CounterTiming? - counter
- traceTiming: TraceTiming? - time tracer
Instance methods
endFailure
Manages a failed service end.
evoid endFailure([Exception? err])
- err: Exception? - exception
endTiming
Ends the service.
void endTiming([Exception? err])
- err: Exception? - exception
endSuccess
Manages a successful service end.
void endSuccess()