[pkg/ottl] OTTL Base64Encode function#46075
Conversation
|
/rerun |
ca541d7 to
537d59f
Compare
|
/rerun |
537d59f to
a2bd9e6
Compare
|
Hi @alexcams, could you please address the lint issues and re-request review when it's done? Thanks! |
a2bd9e6 to
55d1f5c
Compare
|
/rerun |
|
Thank you for your contribution @alexcams! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey. If you are getting started contributing, you can also join the CNCF Slack channel #opentelemetry-new-contributors to ask for guidance and get help. |
|
Hi all. Nothing to do with the functionality of this PR but I thought I'd mention (here in context) a pain point in relation to finding which release this PR takes effect in. It'd be great for each PR to have a tag saying "first available in collector version X.Y.Z". This would also help AIs detect when people think there's a bug (feature X doesn't work) the AI could say "please run otelcol-contrib --version and provide the output" then "ahh you're using X.Y.Z and this functionality isn't available until version Z.Y.X" For example, I know that this was merged 5 days ago. Now I need to jump to the releases repo and check when the last collector release was ("last week"). OK so maybe I'm in luck because 5 days could be "last week". I download 0.146.0 and it doesn't seem to have this. Looking at the release notes I don't see it, so I assume I just need to wait? |
|
Hi @agardnerIT, thanks for the feedback, that's a fair request, and I agree those labels could be very helpful. Please feel free to open an issue and bring this topic into discussion. Regarding this specific OTTL feature, it was merged after |
Description
Add
Base64EncodeOTTL converter function to encode strings into base64 format with support for multiple variants (base64,base64-raw,base64-url,base64-raw-url). This function addresses the need to handle characters not allowed by certain exporters like NATS Core.Link to tracking issue
Fixes #46071
Testing
Tested manually and added unit and e2e tests.
Test config:
Test input:
{"plain_text": "test string"} {"plain_text": "hello world"} {"plain_text": "special chars: @#$%"} {"plain_text": "URL encoding test: https://example.com?param=value&other=123"}Test result:
Documentation
Updated
README.mdwith function documentation, usage examples, and supported variants.