Hi Ivan: Yes, I will clean things up a bit and do that soon. I would also like to try Romain's suggestion. I'm not all that experienced in pushing to a remote branch, so if you could complete the command below, it would be much appreciated. Thanks!
*git push* Mike. On Wed, Nov 28, 2018 at 10:43 AM Ivan Junckes Filho <ivanjunc...@gmail.com> wrote: > Hi Michael, could you please push it to a remote branch so I can take a > look? > > On Wed, Nov 28, 2018 at 1:26 PM Michael Redlich <mpre...@gmail.com> wrote: > >> Hello everyone: >> >> I am making progress implementing a Metrics Histogram example. Please see >> the following code: >> >> @Path("/histogram") >> @GET >> @Produces(MediaType.TEXT_PLAIN) >> // @Produces(MediaType.APPLICATION_JSON) >> public Histogram histogramStatus() { >> Metadata metadata = new Metadata("items", MetricType.HISTOGRAM, >> "degrees F"); >> metadata.setDescription("A histogram of recent temperatures."); >> Histogram temps = metrics.histogram(metadata); >> for(int temp = 80; temp < 100; ++temp) { >> temps.update(temp); >> } >> return temps; >> } >> >> >> In APPLICATION_JSON mode (commented), the output is as expected. However, >> in TEXT_MODE, I get the following message: >> >> No message body writer has been found for class >> org.apache.geronimo.microprofile.metrics.impl.HistogramImpl, >> ContentType: text/plain >> >> I haven't been able to find a way to correct this, especially since the >> Counter Metric didn't require a body writer. >> >> I would appreciate any help. Thanks! >> >> Mike. >> >> -- >> *Code*, *Write*, *Cycle*, *Run*, *Drink*, >> *Sleep ... Repeat* >> >> *InfoQ <https://www.infoq.com/> Java Queue Editor* >> https://about.me/mpredli <http://about.me/mpredli/> >> https://twitter.com/mpredli >> https://redlich.net/ >> https://javasig.org/ >> *Laissez Les Bon Temps Rouler* >> > -- *Code*, *Write*, *Cycle*, *Run*, *Drink*, *Sleep ... Repeat* *InfoQ <https://www.infoq.com/> Java Queue Editor* https://about.me/mpredli <http://about.me/mpredli/> https://twitter.com/mpredli https://redlich.net/ https://javasig.org/ *Laissez Les Bon Temps Rouler*