Extraneous Partial Success Error Message Exporting Traces to OTel Collector #3432
I have successfully set up to use the Go OpenTelemetry libraries to export trace spans to an OpenTelemetry Collector using OTLP over gRPC. However, even though all the spans are being exported to the collector correctly, I am getting error messages in the OpenTelemetry log in my Go application which look like the following:
This message repeats as more spans are sent. I believe what is happening here is that the spans are sent, the response is a full success, but the Go library is mistaking it as a partial success. See the code below:
Lines 200 to 217 in 3b9862a
I added a
As you can see, there were no rejected spans and no error message, so I believe this should be seen as a full success, and thus the log message is not needed.
Steps To Reproduce
1.) Set up an OTel collector that accepts traces over gRPC (in my case, no TLS).
The traces should continue to successfully export, but there should be no error messages printed out, as a partial success did not actually occur.
The text was updated successfully, but these errors were encountered:
Fix open-telemetry#3432. The OTLP server will respond with empty partial success responses (i.e. empty messages and 0 count). Treat these as equivalent to it not being set/present like the documentation specifies in the proto: https://github.com/open-telemetry/opentelemetry-proto/blob/724e427879e3d2bae2edc0218fff06e37b9eb46e/opentelemetry/proto/collector/trace/v1/trace_service.proto#L58