-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/attributes] Configuration options meant for traces-only should not pass validation on metrics. #36077
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi, I would like to pick this issue |
Component(s)
processor/attributes
What happened?
Description
The attributes processor offers configuration options specific to traces or metrics.
When using a trace-only configuration option on the attributes processor with a metrics pipeline, validation passes and the option is silently ignored.
Steps to Reproduce
Use this attributes processor definition with a metrics pipeline:
Expected Result
Validation should have failed or at least the attribute should not have been set.
Actual Result
The condition is ignored and the attribute is set.
Collector version
0.112.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: