You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When updating mgdatagen to v0.120.0 in downstream Otel collector distributions with custom components, mdatagen generates metrics missing import statements for components with resource attributes.
filter package has been removed but is still required when emitting metrics with resource attributes. This appears to be a regression within this commit
Steps to reproduce
Create a metrics receiver that defines resource attributes and run generate.
What did you expect to see?
Expected to see working generated components
What did you see instead?
Non-working generated components
Collector version
v0.120.0
Environment information
Environment
OS: Darwin arm64
Compiler(if manually compiled): go 1.23*
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered:
…#12456)
#### Description
Re-adds the missing import for the `ResourceAttributes` for metrics
generation. This impacts receivers that emit resource attributes. Filter
is still within the template code for resource attributes, but not
imported.
#### Link to tracking issue
Fixes#12455
Component(s)
cmd/mdatagen
What happened?
Describe the bug
When updating
mgdatagen
tov0.120.0
in downstream Otel collector distributions with custom components, mdatagen generates metrics missing import statements for components with resource attributes.filter
package has been removed but is still required when emitting metrics with resource attributes. This appears to be a regression within this commitSteps to reproduce
Create a metrics receiver that defines resource attributes and run generate.
What did you expect to see?
What did you see instead?
Collector version
v0.120.0
Environment information
Environment
OS: Darwin arm64
Compiler(if manually compiled): go 1.23*
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: