<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 9/16/16 5:54 PM, Cantor, Scott
wrote:<br>
</div>
<blockquote cite="mid:65688F45-16E4-4D20-A476-E0007EDE04EC@osu.edu"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Just so as to not mix and conflate the actual logging config and the metrics, might want
to optionally auto-prepend a separate prefix or something for the metrics categories. So
logging and metrics categories are really separate.
</pre>
</blockquote>
<pre wrap="">
Yes, I had straw-man'd net.shibboleth.idp.metric rather than net.shibboleth.idp in my example.</pre>
</blockquote>
<br>
I was actually thinking more like metrics.net.shibboleth.idp, so
that the metrics are in their own completely separate package
"bucket" and can be turned on/off as a unit, or subunits, distinct
from logging. But I suppose it really just depends on how you want
to optimize the enabling and disabling vis-a-vis the actual logging
config.<br>
<br>
<blockquote cite="mid:65688F45-16E4-4D20-A476-E0007EDE04EC@osu.edu"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">No, I don't see any docs. I just noticed the code. So you're right in that it might not
be guaranteed.
</pre>
</blockquote>
<pre wrap="">
I think counter() is, the others are not. They mention it in the guide, and now that I understand Gauge better, I see the reason.</pre>
</blockquote>
<br>
Actually, all 4 of counter(), histogram(), meter() and timer() are
implemented exactly the same. The Gauge (and I guess any Metric)
that you do with register() is the oddball, it seems to throw an
IllegalArgumentException on an existing name.<br>
<br>
<blockquote cite="mid:65688F45-16E4-4D20-A476-E0007EDE04EC@osu.edu"
type="cite">
<pre wrap="">
Since Gauge is an interface, you don't really create it in the same way as a named counter, </pre>
</blockquote>
<br>
Yeah it seems to essentially be a callback function.<br>
<br>
<br>
<blockquote cite="mid:65688F45-16E4-4D20-A476-E0007EDE04EC@osu.edu"
type="cite">
<pre wrap="">I dunno if Java has method objects you can pass around? I seem to recall it does...
</pre>
</blockquote>
<br>
Well, there's Method in the reflection API. Don't know if that's
what you mean.<br>
</body>
</html>