Support for attribute.ByteSlice to avoid invalid-UTF-8 issues in instrumentation #2314
Labels
blocked:specification
Waiting on clarification of the OpenTelemetry specification before progress can be made
bug
Something isn't working
help wanted
Extra attention is needed
pkg:attribute
Related to the attribute package
AFAIK there are multiple issues here:
[]byte
and usingattribute.String("foo", string(bytes))
looks harmless enough, but it very likely produces an invalid UTF-8 stringAssuming protobuf is not going to change current behavior, OpenTelemetry probably should have some answer to this. At least, dropping the problematic span instead of disconnecting.
PS go2sky seem to have this problem too.
The text was updated successfully, but these errors were encountered: