in safeguard-impl/src/main/java/org/apache/safeguard/impl/circuitbreaker/CircuitBreakerInterceptor.java [240:248]
public void postCreate(final CircuitBreakerImpl circuitBreaker, final InvocationContext context) {
final String metricsNameBase = getBaseMetricsName(context);
metrics.gauge(metricsNameBase + "open.total", "Amount of time the circuit breaker has spent in open state", "nanoseconds",
circuitBreaker.openDuration::get);
metrics.gauge(metricsNameBase + "halfOpen.total", "Amount of time the circuit breaker has spent in half-open state", "nanoseconds",
circuitBreaker.halfOpenDuration::get);
metrics.gauge(metricsNameBase + "closed.total", "Amount of time the circuit breaker has spent in closed state", "nanoseconds",
circuitBreaker.closedDuration::get);
}