Closed
Description
Component(s)
pkg/ottl
What happened?
Description
All of the logic for parsing conditions is correct, however, the inference is using parseStatements not parseConditions which is causing it to throw a bug
Steps to Reproduce
try to call ParseConditions(conditions)
inferredContext, err := pc.contextInferrer.infer(conditionsValues)
is called which uses parse statements to grab the parsed statements.
Expected Result
Actual Result
Collector version
v0.122.0
Environment information
in code.
OpenTelemetry Collector configuration
Log output
Additional context
No response