Skip to content

Conversation

@paulojmdias
Copy link
Member

@paulojmdias paulojmdias commented Nov 17, 2025

Description

The CloudID decoder was incorrectly using strings.Cut(), which only splits at the first delimiter, resulting in malformed URLs when the decoded CloudID contained multiple $ separators. Changed to use strings.Split() to match the reference implementation from the go-elasticsearch library.

Link to tracking issue

Fixes #44306

Testing

Added tests to validate this behaviour and the expected output.

…tic Cloud IDs when sent with multiple dollar sign separators

Signed-off-by: Paulo Dias <[email protected]>
Copy link
Contributor

@axw axw left a comment

Choose a reason for hiding this comment

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

thanks @paulojmdias!

@axw axw added the ready to merge Code review completed; ready to merge by maintainers label Nov 19, 2025
@songy23 songy23 merged commit 3cfc0c1 into open-telemetry:main Nov 19, 2025
202 of 205 checks passed
@github-actions github-actions bot added this to the next release milestone Nov 19, 2025
@paulojmdias paulojmdias deleted the fix/44306 branch November 19, 2025 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exporter/elasticsearch ready to merge Code review completed; ready to merge by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

elasticsearch exporter: Cloud ID is decoded wrongly

5 participants