open-telemetry / opentelemetry-collector

OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
4.46k stars 1.47k forks source link

Log the name of the component that failed to start #10426

Open yurishkuro opened 5 months ago

yurishkuro commented 5 months ago

Describe the bug I have a component (processor) that fails to start due to misconfiguration of the pipeline.

Steps to reproduce A processor whose Start method returns an error.

What did you expect to see? An error logged indicating which component failed.

What did you see instead?

Error: cannot start pipelines: <<my error message here>>
2024/06/17 22:11:03 cannot start pipelines: <<my error message here>>

What version did you use? v0.102.1

Additional context I am forced to enrich the error myself with the name of the component. I think instead that should be coming directly from the framework that initializes the pipeline.

terakoya76 commented 3 months ago

This may have been resolved by https://github.com/open-telemetry/opentelemetry-collector/pull/10440 ?