Closed ghost closed 3 years ago
Where did you get this version of the collector?
@Aneurysm9 this seems to be in otel-go-contrib
This appears to result from #4031, which set a MeterProvider
on the otelhttp
wrapper for the receiver's HTTP server without ensuring that a valid MeterProvider
exists. The collector should avoid doing this and the instrumentation configuration should also guard against this.
I'll address this issue.
@bogdandrutu I got it from the test, but I also tried to compile it locally and the same error occurred. Link to the test: https://github.com/open-telemetry/opentelemetry-collector/actions/runs/1233371692
@julianocosta89-dt the fix for this has been pushed to main. I've tested the code with the configuration you provided and it appears to be working. Please take a look and re-open if it's not the case.
Describe the bug Whenever starting the otel-collector version 0.35.0, if the config file contains the following
The start of the collector will fail with the reported below.
Steps to reproduce Start the otel-collector v 0.35.0 binary using the config file documented below.
What did you expect to see? I expected to have the otel-collector up and running normally, as this configuration is recommended here: https://github.com/open-telemetry/opentelemetry-collector/blob/main/receiver/otlpreceiver/README.md
What did you see instead? The collector failed to start with the following log:
What version did you use? Version:
v0.35.0
What config did you use? Config:
Environment OS: "Ubuntu 20.04" Used the binary available here: https://github.com/open-telemetry/opentelemetry-collector/actions/runs/1233371692