MetricsContext backed by DefaultCounter and DefaultTimer instances.
Definition metrics_context.h:70
Factory for creating named Counter and Timer instances.
Definition metrics_context.h:35
virtual std::shared_ptr< Counter > GetCounter(std::string_view name, CounterUnit unit)=0
Get or create a named Counter with an explicit unit.
virtual std::shared_ptr< Timer > GetTimer(std::string_view name, TimerUnit unit)=0
Get or create a named Timer with an explicit unit.
std::shared_ptr< Timer > GetTimer(std::string_view name)
Get or create a nanosecond-precision Timer by name.
Definition metrics_context.h:56
std::shared_ptr< Counter > GetCounter(std::string_view name)
Get or create a count-unit Counter by name.
Definition metrics_context.h:46