Skip to content

[chore][pkg/ottl] Add profile to the infer priorities #39612

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rockdaboot
Copy link
Contributor

Description

Without this, inferring doesn't work. Ran into this while working on adding profiles support for the tranformprocessor.

For example, this error will be fixed with this PR:

unable to parse OTTL statement "set(profile.attributes[\"test\"], \"pass\") where resource.attributes[\"test\"] == \"pass\"": error while parsing arguments for call to "set": invalid argument at position 0: context "profile" from path "profile.attributes[test]" is not valid, it must be replaced by one of: "resource"

@rockdaboot rockdaboot marked this pull request as ready for review April 24, 2025 10:10
@github-actions github-actions bot requested a review from kentquirk April 24, 2025 10:10
Copy link
Contributor

@edmocosta edmocosta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please update the tests so it includes and validates the new profile context order? Thanks!

@rockdaboot
Copy link
Contributor Author

Could you please update the tests so it includes and validates the new profile context order? Thanks!

👍 added the tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants