ERROR proto: illegal wireType 7 while unmarshalling metrics request #4700
Labels
area: instrumentation
Related to an instrumentation package
bug
Something isn't working
instrumentation: otelhttp
Milestone
Description
I am working with given client/server otelhttp example. Instead of a client I use an opentelemetry-collector with its native otlphttpexporter exporter and PostgreSQL receiver from contrib. To read metrics I added new logic to the server (mostly copypasted from native otlphttpreceiver) - see step 2 in Steps To Reproduce.
But when performing
encoder.unmarshalMetricsRequest(body)
I get the errorproto: illegal wireType 7
.Environment
otelhttp
version: v0.46.1ocb
v0.89.0otlphttpexporter
v0.89.0opentelemetry-collector-contrib/receiver/postgresqlreceiver
version: v0.88.0Steps To Reproduce
builder.yaml
collector-config.yaml
server.go
Expected behavior
Receive metrics on the server side and unmarshall them correctly.
The text was updated successfully, but these errors were encountered: