-- | Encode metrics as nested JSON objects. See 'Json.sampleToJson'
-- for a description of the encoding.
encodeAll :: Sample -> L.ByteString
encodeAll = A.encode . Json.sampleToJson
encodeAll :: Sample -> L.ByteString
encodeAll = A.encode . Json.sampleToJson
encodeAll = A.encode . Json.sampleToJson