Describe the bug
Generated telemetry files always includes the context import when there are metrics. However, this is only needed when generating async metrics. It has to be removed to make the file valid (eg manually or gofmt).
Steps to reproduce
Generate telemetry for a component with a non-async metric. The output go file will have the unused imports.
What did you expect to see?
Imports are only the context import when generating async metrics.
What did you see instead?
Context import are always included when generating any metrics.
What version did you use?
Latest
What config did you use?
N/A
Environment
N/A
Additional context
N/A