Metrics follow-up thoughts
Cantor, Scott
cantor.2 at osu.edu
Fri Sep 16 19:59:46 EDT 2016
On 9/16/16, 7:49 PM, "dev on behalf of Brent Putman" <dev-bounces at shibboleth.net on behalf of putmanb at georgetown.edu> wrote:
> I think I lost the bubble on why you were asking... But you could certainly have a
> Gauge impl which was constructed with a Method instance. But the Method has to be invoked
> on a object (e.g. the queue in their example).... and if you had the queue instance
> (somehow, maybe from a ThreadLocal), you could just call a method on it directly in the
> normal fashion, so not sure of the use case.
I'm just working out in my mind how much separation is possible between code that's creating and registering metrics and the code that's populating them.
The callback metaphor is just very different from all the others, and I guess it probably eliminates any real separation.
-- Scott
More information about the dev
mailing list