cmckn
cmckn
This will do it: import io.dropwizard.Application; import io.dropwizard.Configuration; import io.dropwizard.setup.Environment; public class MetricRegistryBugApplication extends Application<Configuration> { public static void main( String[] args ) throws Exception { new MetricRegistryBugApplication().run( "server" );...
Same issue. I've tried all the methods available in `MetricRegistry` to build a serializable `Collection` of `Metric`-s. No dice. I also can't for the life of me find where and...
You beat me to it, but yes; the `MetricRegistry` is written to an `OutputStream` using `ObjectWriter#writeValue` within [MetricsServlet#doGet](https://github.com/dropwizard/metrics/blob/4.1-development/metrics-servlets/src/main/java/com/codahale/metrics/servlets/MetricsServlet.java#L166). My tests fail with the same error as above using equivalent calls....
Yes, I discovered this outside of testing. I only used testing resources to get stack traces -- here's an [application](https://github.com/cmckn/metricregistrybug) with a `/metrics` endpoint. I get a 400 response. Thanks...
>As a workaround, you can use Jackson.newMinimalObjectMapper() (which doesn't register the afterburner module), to serialize the registry. You're a wizard -- this is totally adequate for now. Wish I had...
The chat link above seems to have expired -- is there any way I could join this group? I've been trying to use VM's to build, but keep running into...