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
Describe the bug
Unable to successfully autogenerate valid metadata using the //go:generate mdatagen --experimental-gen metadata.yaml tag in a codegen.go file. An invalid string name is created when a metrics attributes has a period within it (i.e. attributes: [ http.method ]) in the metadata.yaml file.
Steps to reproduce
Add a metric with an attribute with a period in a metadata.yaml file. Include a codegen.go file with the //go:generate mdatagen --experimental-gen metadata.yaml tag. Run make generate
What did you expect to see?
No error.
What did you see instead?
An error
Which led me to examine the generated file.
A generated function with an invalid string name http.methodAttributeValue string
What version did you use?
Version: v0.41.0
What config did you use?
Config: metadata.yaml
Environment
MacOS
The text was updated successfully, but these errors were encountered:
Describe the bug
Unable to successfully autogenerate valid metadata using the
//go:generate mdatagen --experimental-gen metadata.yaml
tag in a codegen.go file. An invalid string name is created when a metrics attributes has a period within it (i.e. attributes: [ http.method ]) in the metadata.yaml file.Steps to reproduce
Add a metric with an attribute with a period in a metadata.yaml file. Include a codegen.go file with the
//go:generate mdatagen --experimental-gen metadata.yaml
tag. Runmake generate
What did you expect to see?
No error.
What did you see instead?
An error
Which led me to examine the generated file.
A generated function with an invalid string name
http.methodAttributeValue
stringWhat version did you use?
Version: v0.41.0
What config did you use?
Config: metadata.yaml
Environment
MacOS
The text was updated successfully, but these errors were encountered: