Is there a reason that otelzap doesn't use the passed message as the event name? #77
-
https://github.com/uptrace/opentelemetry-go-extra/blob/main/otelzap/otelzap.go#L201 Uses a generic 'log' message. But the passed in user msg is available. Is this intentional? And if so why? |
Beta Was this translation helpful? Give feedback.
Answered by
vmihailenco
Sep 23, 2022
Replies: 1 comment
-
Because event names must have low cardinality which can't be guaranteed if we use error messages - see https://uptrace.dev/opentelemetry/span-naming.html#span-names |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kklipsch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because event names must have low cardinality which can't be guaranteed if we use error messages - see https://uptrace.dev/opentelemetry/span-naming.html#span-names