Skip to content
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

[pkg/ottl] Add private interface for path and key #29704

Merged

Conversation

TylerHelmuth
Copy link
Member

Description:
This is the first PR working towards #22744.

It adds 2 new interfaces, path and key, that will be given to contexts to use when interpreting the paths/keys passed from the grammar. Eventually we'll be able to use the isComplete functions during parsing to ensure that all parts of the path were used by the context.

By the end of that issue we'll have removed all public API's of OTTL's grammar, which is going to cause massive breaking changes to all our contexts and huge PRs. To help decrease the amount of changes per PR these new interfaces are not yet exported and not yet implemented. To see them partially in use checkout #29703.

Link to tracking Issue:

Related to #22744

Testing:

Added unit tests

Documentation:

I'll add godoc comments once these things are made public

@TylerHelmuth TylerHelmuth added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Dec 8, 2023
pkg/ottl/functions.go Outdated Show resolved Hide resolved
pkg/ottl/functions.go Outdated Show resolved Hide resolved
pkg/ottl/functions_test.go Show resolved Hide resolved
TylerHelmuth and others added 3 commits December 8, 2023 08:53
Co-authored-by: Evan Bradley <11745660+evan-bradley@users.noreply.github.com>
@TylerHelmuth TylerHelmuth merged commit 4beafed into open-telemetry:main Dec 12, 2023
83 checks passed
@TylerHelmuth TylerHelmuth deleted the ottl-add-path-key-interfaces branch December 12, 2023 15:59
@github-actions github-actions bot added this to the next release milestone Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/ottl Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants