Skip to content

Conversation

@sujalshah-bit
Copy link
Contributor

Description

Creates MetricIdentity struct for uniquely identifying metrics and adds a deterministic Hash method using xxhash with proper field separation.

Link to tracking issue

partly fixes #37277.

Testing

Documentation

@sujalshah-bit sujalshah-bit requested review from a team, ArthurSens and dashpole as code owners March 19, 2025 11:24
@sujalshah-bit sujalshah-bit force-pushed the hash_func_metric_identity branch 2 times, most recently from 1686df6 to 5e6ac5b Compare March 19, 2025 11:31
Copy link
Contributor

@perebaj perebaj left a comment

Choose a reason for hiding this comment

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

Thanks for the effort!

@atoulme atoulme marked this pull request as draft March 20, 2025 06:05
@atoulme
Copy link
Contributor

atoulme commented Mar 20, 2025

Please address review and mark the PR as ready for review afterwards. And thank you for this contribution!

@sujalshah-bit sujalshah-bit force-pushed the hash_func_metric_identity branch from 5e6ac5b to 0e5e318 Compare March 21, 2025 14:09
@sujalshah-bit
Copy link
Contributor Author

hey @perebaj made the changes you suggested kindly review :)

Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

Thank you, pretty close to done!

@ArthurSens ArthurSens added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 21, 2025
…h-based Hash method.

Creates MetricIdentity struct for uniquely identifying metrics and adds
a deterministic Hash method using xxhash with proper field separation.

partly fixes open-telemetry#37277.
@sujalshah-bit sujalshah-bit force-pushed the hash_func_metric_identity branch from 0e5e318 to 23429c3 Compare March 21, 2025 14:16
@sujalshah-bit
Copy link
Contributor Author

@ArthurSens made the change thanks for reviewing :)

Copy link
Member

@ArthurSens ArthurSens left a comment

Choose a reason for hiding this comment

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

LGTM, could you switch from draft mode?

@ArthurSens ArthurSens added the ready to merge Code review completed; ready to merge by maintainers label Mar 21, 2025
@sujalshah-bit sujalshah-bit marked this pull request as ready for review March 21, 2025 14:28
@sujalshah-bit
Copy link
Contributor Author

done :)

@atoulme atoulme merged commit e1de6cc into open-telemetry:main Mar 21, 2025
183 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 21, 2025
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
…th xxhash-based hash method (open-telemetry#38795)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
Creates MetricIdentity struct for uniquely identifying metrics and adds
a deterministic Hash method using xxhash with proper field separation.
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
partly fixes open-telemetry#37277.
<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready to merge Code review completed; ready to merge by maintainers receiver/prometheusremotewrite Skip Changelog PRs that do not require a CHANGELOG.md entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prometheus Remote-Write receiver Alpha

6 participants