You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the API to register two async instruments with the same name, but different callback behavior, the first one registered wins. The callback of the second is never invoked, and there are no logs to tell me that.
For example:
AtomicLong countUp = new AtomicLong(0);
AtomicLong countDown = new AtomicLong(100);
meter.gaugeBuilder("foo").buildWithCallback(observe -> observe.record(countUp.incrementAndGet()));
meter.gaugeBuilder("foo").buildWithCallback(observe -> observe.record(countDown.decrementAndGet()));
We should provide useful log messages when conflicts like this happen since unlike synchronous instruments, we can't just return the same instrument that was previously registered.
The text was updated successfully, but these errors were encountered:
If I use the API to register two async instruments with the same name, but different callback behavior, the first one registered wins. The callback of the second is never invoked, and there are no logs to tell me that.
For example:
We should provide useful log messages when conflicts like this happen since unlike synchronous instruments, we can't just return the same instrument that was previously registered.
The text was updated successfully, but these errors were encountered: