-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedGood issue for contributors to OpenTelemetry Service to pick upGood issue for contributors to OpenTelemetry Service to pick up
Description
Is your feature request related to a problem? Please describe.
Standard http.Server
has a field ErrorLog
:
// ErrorLog specifies an optional logger for errors accepting
// connections, unexpected behavior from handlers, and
// underlying FileSystem errors.
// If nil, logging is done via the log package's standard logger.
ErrorLog *log.Logger
However, confighttp.ToServer
leaves it empty, which will lead to error logs printed using a different logger.
Describe the solution you'd like
In Jaeger we initialize it with a logger backed by Zap:
errorLog, _ := zap.NewStdLogAt(params.Logger, zapcore.ErrorLevel)
server.ErrorLog = errorLog
I think confighttp.ToServer()
should do the same.
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedGood issue for contributors to OpenTelemetry Service to pick upGood issue for contributors to OpenTelemetry Service to pick up