David Schlosnagle
David Schlosnagle
WIP on https://github.com/palantir/tritium/tree/ds/instrument-concrete branch, just needs some shading & gradle love to make sure that the published libs don't include cglib and objenesis in pom.xml.
@carterkozak has a WIP https://github.com/palantir/tritium/commit/27d287f44f47abe1861e4f9a48bdbde69ced26a5 using ByteBuddy that would likely make this feasible.
Interested in feedback on what logger this would go to, at what level, and if you'd annotate the instrumented interface and/or implementation?
Might be able to expose the `HdrHistogramResetOnSnapshotReservoir` which is "a reservoir that resets its internal state on each snapshot (which is how reporters get information from reservoirs)" See also https://github.com/dropwizard/metrics/issues/143...
Going to close this out for now as I am not sure we want to snapshot everytime due to overhead and potential misuse via things like JMX monitors causing many...
Also see https://github.com/vladimir-bukhtoyarov/metrics-core-hdr
Will likely require injecting nanos into handler preInvocation and API break
While at it, really need to inject ticker for testing
Tagging @carterkozak for SA
@carterkozak kicked off https://github.com/openjdk/loom/pull/16 to use virtual thread for listener callback