-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc encoding error #108
Comments
I found another message:
No idea where it is logged from either, can't find "traces exporter is disconnected" anywhere in the codebase for uptrace-go |
The error comes from grpc-go, because there is some invalid UTF-8 in the payload. The error is generated by protobuf. AFAIK the data is not even sent to Uptrace. It looks like this issue can be triggered by using invalid UTF-8 in strings or converting []byte to string via I am not sure what do, but you could try to silence those logs with SetErrorHandler import "go.opentelemetry.io/otel"
otel.SetErrorHandler(otel.ErrorHandlerFunc(func(e error) {})) |
PS I guess I will create an issue in opentelemetry-go. And thanks for the report :) |
I found the source of my error, as I said I knew the error was not caused by uptrace I just had a lot of trouble to find where was the origin xD In that cas I was doing exactly what you mention: rawData := []byte{...}
span.AddAttributes(
attribute.String("data", string(rawData))
) |
👍 Some options:
|
I have removed logging/tracing this field altogether, we use a code generator to generate those that's why it needed some time to track where this particular error was. |
I am getting weird log entries on one of our services, I think the message is printed by
uptrace-go
and although this is not an error in the library itself I am trying to find it to find what exactly is the problematic content xDDo you have any idea where this might originate from ?
I am sure the message is not from our service itself since we use zap to output json formatted log, no
log.Printxx
is used anywhere.The text was updated successfully, but these errors were encountered: