@@ -37,7 +37,7 @@ data TraceDispatcherMessage =
3737 -- The third array gives the names of all tracers
3838 | MetricsInfo (Map. Map Text Int )
3939 -- ^ Outputs optional statistics about metrics frequency
40- | TracerErrors [Text ]
40+ | TracerConsistencyWarnings [Text ]
4141 -- ^ Consistency check found warnings
4242
4343 deriving Show
@@ -57,7 +57,7 @@ instance LogFormatting TraceDispatcherMessage where
5757 <> intercalate (singleton ' ' ) noMetrics <> " . Here is a complete list of all tracers: "
5858 <> intercalate (singleton ' ' ) allTracers <> " ."
5959 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
6161
6262
6363 forMachine _dtl StartLimiting {} = mconcat
@@ -87,8 +87,8 @@ instance LogFormatting TraceDispatcherMessage where
8787 [ " kind" .= String " MetricsInfo"
8888 , " metrics count" .= String ((pack . show ) mmap)
8989 ]
90- forMachine _dtl (TracerErrors errs) = mconcat
91- [ " kind" .= String " TracerErrors "
90+ forMachine _dtl (TracerConsistencyWarnings errs) = mconcat
91+ [ " kind" .= String " TracerConsistencyWarnings "
9292 , " errors" .= String ((pack . show ) errs)
9393 ]
9494
@@ -101,7 +101,7 @@ instance LogFormatting TraceDispatcherMessage where
101101 asMetrics UnknownNamespace {} = []
102102 asMetrics TracerInfo {} = []
103103 asMetrics MetricsInfo {} = []
104- asMetrics TracerErrors {} = []
104+ asMetrics TracerConsistencyWarnings {} = []
105105
106106
107107instance MetaTrace TraceDispatcherMessage where
@@ -111,7 +111,7 @@ instance MetaTrace TraceDispatcherMessage where
111111 namespaceFor UnknownNamespace {} = Namespace [] [" UnknownNamespace" ]
112112 namespaceFor TracerInfo {} = Namespace [] [" TracerInfo" ]
113113 namespaceFor MetricsInfo {} = Namespace [] [" MetricsInfo" ]
114- namespaceFor TracerErrors {} = Namespace [] [" TracerErrors " ]
114+ namespaceFor TracerConsistencyWarnings {} = Namespace [] [" TracerConsistencyWarnings " ]
115115
116116
117117 severityFor (Namespace _ [" StartLimiting" ]) _ = Just Notice
@@ -120,7 +120,7 @@ instance MetaTrace TraceDispatcherMessage where
120120 severityFor (Namespace _ [" UnknownNamespace" ]) _ = Just Error
121121 severityFor (Namespace _ [" TracerInfo" ]) _ = Just Notice
122122 severityFor (Namespace _ [" MetricsInfo" ]) _ = Just Debug
123- severityFor (Namespace _ [" TracerErrors " ]) _ = Just Error
123+ severityFor (Namespace _ [" TracerConsistencyWarnings " ]) _ = Just Error
124124 severityFor _ _ = Nothing
125125
126126
@@ -144,7 +144,7 @@ instance MetaTrace TraceDispatcherMessage where
144144 documentFor (Namespace _ [" MetricsInfo" ]) = Just $ mconcat
145145 [ " Writes out number of metrics delivered."
146146 ]
147- documentFor (Namespace _ [" TracerErrors " ]) = Just $ mconcat
147+ documentFor (Namespace _ [" TracerConsistencyWarnings " ]) = Just $ mconcat
148148 [ " Tracer consistency check found errors."
149149 ]
150150 documentFor _ = Nothing
@@ -157,5 +157,5 @@ instance MetaTrace TraceDispatcherMessage where
157157 , Namespace [] [" UnknownNamespace" ]
158158 , Namespace [] [" TracerInfo" ]
159159 , Namespace [] [" MetricsInfo" ]
160- , Namespace [] [" TracerErrors " ]
160+ , Namespace [] [" TracerConsistencyWarnings " ]
161161 ]
0 commit comments