opentelemetry-collector
opentelemetry-collector copied to clipboard
[cmd/mdatagen] Compilation error when all telemetry metrics are optional
Context: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/33539#discussion_r1644122489
When marking all internal metrics as optional, the generated code has a compilation error, as it defines a var (err) that ends up not being used.