public static Optional < String > wavefrontValue ( MetricValue mv ) { // Omit NaN and Inf. if ( mv . isInfiniteOrNaN ( ) ) return Optional . empty ( ) ; return mv . value ( ) . map ( Number :: toString ) ; }
Create a wavefront compatible string representation of the metric value .