Skip to content

[pkg/ottl] Add Murmur3Hash converter #37027

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

Merged
merged 23 commits into from
Mar 13, 2025

Conversation

kaisecheng
Copy link
Contributor

@kaisecheng kaisecheng commented Jan 6, 2025

Description

Add four murmur3 hash functions to convert the target string to hexadecimal string format

Murmur3Hash returns a hexadecimal string in little-endian of the 32-bit Murmur3 hash
Murmur3Hash128 returns a hexadecimal string in little-endian of the 128-bit Murmur3 hash

Example: Murmur3Hash("20250106")

Link to tracking issue

issue: #34077

supersedes: #34155

Testing

  • Unit tests
  • E2E tests

Documentation

readme

- Murmur3Hash: Murmur3 32-bit hash represented as a signed integer
- Murmur3Hash128: Murmur3 128-bit hash represented as two signed integers
- Murmur3Hex: hexadecimal string in little-endian of the 32-bit Murmur3 hash
- Murmur3Hex128: hexadecimal string in little-endian of the 128-bit Murmur3 hash
@github-actions github-actions bot requested a review from portertech March 11, 2025 00:49
@kaisecheng
Copy link
Contributor Author

failing check build-examples is a known issue #38488

@kaisecheng
Copy link
Contributor Author

@edmocosta this is ready for review

@kaisecheng
Copy link
Contributor Author

@edmocosta this is ready for a second review

@evan-bradley evan-bradley merged commit 8479183 into open-telemetry:main Mar 13, 2025
171 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants