opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

[cmd/mdatagen] Compilation error when all telemetry metrics are optional

Open jpkrohling opened this issue 1 year ago • 0 comments

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.

jpkrohling avatar Jun 20 '24 08:06 jpkrohling