Skip to content

[pkg/ottl] Context Inferer does not support conditions #38755

Closed
@jaronoff97

Description

@jaronoff97

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds triageNew item requiring triagepkg/ottl

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions