Dirk Rudolph created SLING-11197: ------------------------------------ Summary: GraphQLServlet cache hit rate metric produces invalid json Key: SLING-11197 URL: https://issues.apache.org/jira/browse/SLING-11197 Project: Sling Issue Type: Bug Components: GraphQL Affects Versions: GraphQL Core 0.0.12 Reporter: Dirk Rudolph
The GraphQLServlet may produce a NaN for the cache hit rate metric resulting in a hard to parse json. {code:java} "sling:org.apache.sling.graphql.core.servlet.GraphQLServlet.rt:my/rt.m:GET_POST.e:json.cache_hit_rate": { "value": NaN }{code} NaN is not an allowed value according to https://www.json.org/json-en.html -- This message was sent by Atlassian Jira (v8.20.1#820001)