-
Notifications
You must be signed in to change notification settings - Fork 834
Open
Labels
help wantedtype/observabilityTo help know what is going on inside CortexTo help know what is going on inside Cortex
Description
We use SpanLogger to unify logging and tracing instrumentation code, but we need to call level.Error
and log.Error
to log and set the error tag on the span in the case of errors. We can keep the current Log
and Error
functions to satisfy the interfaces but extend Log
(or introduce a new function) to detect level=error
in the key value pairs passed to the function to also call Error
and save users a loc per error handling branch
See discussion starting here: #2970 (comment)
Metadata
Metadata
Assignees
Labels
help wantedtype/observabilityTo help know what is going on inside CortexTo help know what is going on inside Cortex