[processor/attributes] Configuration options meant for traces-only should not pass validation on metrics. #36077
Labels
bug
Something isn't working
needs triage
New item requiring triage
processor/attributes
Attributes processor
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: