We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61b8ebf commit fc247deCopy full SHA for fc247de
nri-kafka/src/Kafka/Stats.hs
@@ -20,7 +20,7 @@ type StatsCallback = (Result Text Stats -> Task Text ())
20
21
decode :: ByteString -> Result Text Stats
22
decode raw =
23
- case Aeson.Extra.decodeIntoFlatDict raw of
+ case Aeson.Extra.decodeIntoFlatDict (Debug.log "raw" raw) of
24
Err err -> Err err
25
Ok stats ->
26
stats
@@ -38,7 +38,7 @@ data Metric = StringMetric Text | IntMetric Int | IntGauge Int | BoolMetric Bool
38
39
toMetric :: Path -> Aeson.Value -> Result Text Metric
40
toMetric path value =
41
- case List.reverse path of
+ case List.reverse (Debug.log "path" path) of
42
(Aeson.Extra.Key last) : _ ->
43
case Dict.get last allMetrics of
44
Nothing ->
0 commit comments