Skip to content

Commit fdc39ca

Browse files
authored
Log prometheus listener error at Warn level (#7291)
## What changed? <!-- Describe what has changed in this PR --> - Log prometheus listener error at Warn level ## Why? <!-- Tell your future self why have you made these changes --> - For backward compatibility. There might be some CI systems monitoring logs and fail tests on Error logs.
1 parent 1d568d0 commit fdc39ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/metrics/opentelemetry_provider.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ func initPrometheusListener(
132132
if fatalOnListenerError {
133133
logger.Fatal(msg)
134134
} else {
135-
logger.Error(msg)
135+
// For backward compatibility, we log as Warn instead of Error/Fatal
136+
// to match the behavior of tally framework.
137+
logger.Warn(msg)
136138
}
137139
}()
138140

0 commit comments

Comments
 (0)