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 Sprintf OTTL Converter #33589

Merged

Conversation

sinkingpoint
Copy link
Contributor

Description:

This adds in a converter that calls fmt.Sprintf with a format string and a set of arguments.

Link to tracking Issue: #33405

Testing: Added in a couple of unit tests

Documentation: Added the new converter to the functions readme

pkg/ottl/ottlfuncs/README.md Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/func_sprintf.go Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/func_sprintf_test.go Outdated Show resolved Hide resolved
@sinkingpoint sinkingpoint force-pushed the sinkingpoint/sprintf_func branch from bab07fe to 0b2681e Compare June 25, 2024 02:56
Copy link
Contributor

@evan-bradley evan-bradley left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. Could you also add an E2E test for this function in e2e/e2e_test.go?

.chloggen/sinkingpoint_sprintf_func.yaml Outdated Show resolved Hide resolved
pkg/ottl/ottlfuncs/func_format_test.go Show resolved Hide resolved
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jul 16, 2024
@sinkingpoint sinkingpoint force-pushed the sinkingpoint/sprintf_func branch from 0b2681e to 96f8328 Compare July 25, 2024 06:41
This adds in a converter that calls `fmt.Sprintf`
with a format string and a set of arguments.

Signed-off-by: sinkingpoint <[email protected]>
@sinkingpoint sinkingpoint force-pushed the sinkingpoint/sprintf_func branch from 96f8328 to a848207 Compare July 25, 2024 07:02
@sinkingpoint
Copy link
Contributor Author

Apologies for the delay here. I think this should be good to go now?

Copy link
Contributor

@evan-bradley evan-bradley left a comment

Choose a reason for hiding this comment

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

Thanks @sinkingpoint

@github-actions github-actions bot removed the Stale label Jul 26, 2024
@TylerHelmuth TylerHelmuth merged commit 9398c4c into open-telemetry:main Jul 26, 2024
154 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 26, 2024
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.

4 participants