Replace constants from trace with equivalents defined in teleport (#39307)

* Remove logging from circuit breaker

The logging is never output, and if it was would be very verbose.
Instead of dropping the level down to trace the logger is removed
entirely.

* Add constants from trace library

The logging functionality in trace is being removed in an upcoming
release. To prepare the logging component keys are copied from trace
into teleport.

* Convert trace.ComponentFields to teleport.ComponentFields

* Replace trace.Component with teleport.ComponentKey

* Replace trace logging constants
This commit is contained in:
rosstimothy
2024-03-14 13:04:29 +00:00
committed by GitHub
parent 640e88b6ba
commit 1aec5414f1
217 changed files with 498 additions and 402 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ import (
// run as part of normal CI.
var log = logrus.WithFields(logrus.Fields{
trace.Component: teleport.ComponentVersionControl,
teleport.ComponentKey: teleport.ComponentVersionControl,
})
// Visit uses the supplied visitor to aggregate release info from the github releases api.