@@ -37,7 +37,7 @@ data TraceDispatcherMessage =
37
37
-- The third array gives the names of all tracers
38
38
| MetricsInfo (Map. Map Text Int )
39
39
-- ^ Outputs optional statistics about metrics frequency
40
- | TracerErrors [Text ]
40
+ | TracerConsistencyWarnings [Text ]
41
41
-- ^ Consistency check found warnings
42
42
43
43
deriving Show
@@ -57,7 +57,7 @@ instance LogFormatting TraceDispatcherMessage where
57
57
<> intercalate (singleton ' ' ) noMetrics <> " . Here is a complete list of all tracers: "
58
58
<> intercalate (singleton ' ' ) allTracers <> " ."
59
59
forHuman (MetricsInfo mmap) = " Number of metrics delivered, " <> (pack . show ) mmap
60
- forHuman (TracerErrors errs) = " Consistency check found error: " <> (pack . show ) errs
60
+ forHuman (TracerConsistencyWarnings errs) = " Consistency check found error: " <> (pack . show ) errs
61
61
62
62
63
63
forMachine _dtl StartLimiting {} = mconcat
@@ -87,8 +87,8 @@ instance LogFormatting TraceDispatcherMessage where
87
87
[ " kind" .= String " MetricsInfo"
88
88
, " metrics count" .= String ((pack . show ) mmap)
89
89
]
90
- forMachine _dtl (TracerErrors errs) = mconcat
91
- [ " kind" .= String " TracerErrors "
90
+ forMachine _dtl (TracerConsistencyWarnings errs) = mconcat
91
+ [ " kind" .= String " TracerConsistencyWarnings "
92
92
, " errors" .= String ((pack . show ) errs)
93
93
]
94
94
@@ -101,7 +101,7 @@ instance LogFormatting TraceDispatcherMessage where
101
101
asMetrics UnknownNamespace {} = []
102
102
asMetrics TracerInfo {} = []
103
103
asMetrics MetricsInfo {} = []
104
- asMetrics TracerErrors {} = []
104
+ asMetrics TracerConsistencyWarnings {} = []
105
105
106
106
107
107
instance MetaTrace TraceDispatcherMessage where
@@ -111,7 +111,7 @@ instance MetaTrace TraceDispatcherMessage where
111
111
namespaceFor UnknownNamespace {} = Namespace [] [" UnknownNamespace" ]
112
112
namespaceFor TracerInfo {} = Namespace [] [" TracerInfo" ]
113
113
namespaceFor MetricsInfo {} = Namespace [] [" MetricsInfo" ]
114
- namespaceFor TracerErrors {} = Namespace [] [" TracerErrors " ]
114
+ namespaceFor TracerConsistencyWarnings {} = Namespace [] [" TracerConsistencyWarnings " ]
115
115
116
116
117
117
severityFor (Namespace _ [" StartLimiting" ]) _ = Just Notice
@@ -120,7 +120,7 @@ instance MetaTrace TraceDispatcherMessage where
120
120
severityFor (Namespace _ [" UnknownNamespace" ]) _ = Just Error
121
121
severityFor (Namespace _ [" TracerInfo" ]) _ = Just Notice
122
122
severityFor (Namespace _ [" MetricsInfo" ]) _ = Just Debug
123
- severityFor (Namespace _ [" TracerErrors " ]) _ = Just Error
123
+ severityFor (Namespace _ [" TracerConsistencyWarnings " ]) _ = Just Error
124
124
severityFor _ _ = Nothing
125
125
126
126
@@ -144,7 +144,7 @@ instance MetaTrace TraceDispatcherMessage where
144
144
documentFor (Namespace _ [" MetricsInfo" ]) = Just $ mconcat
145
145
[ " Writes out number of metrics delivered."
146
146
]
147
- documentFor (Namespace _ [" TracerErrors " ]) = Just $ mconcat
147
+ documentFor (Namespace _ [" TracerConsistencyWarnings " ]) = Just $ mconcat
148
148
[ " Tracer consistency check found errors."
149
149
]
150
150
documentFor _ = Nothing
@@ -157,5 +157,5 @@ instance MetaTrace TraceDispatcherMessage where
157
157
, Namespace [] [" UnknownNamespace" ]
158
158
, Namespace [] [" TracerInfo" ]
159
159
, Namespace [] [" MetricsInfo" ]
160
- , Namespace [] [" TracerErrors " ]
160
+ , Namespace [] [" TracerConsistencyWarnings " ]
161
161
]
0 commit comments