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

feat(CI): adding job to ensure opentelemetry version #501

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

NikolaMilosa
Copy link
Contributor

Found an interesting bug that we really cannot catch... Its caused by Update dependencies job (but I am 100% sure that dependabot would cause the same, and maybe has).
Here is a problematic PR with the line: https://github.com/dfinity/dre/commit/1eda593b16fb3e72e6f102df708b5b69eb502bda#diff-13ee4b2252c9e516a0547f2891aa[…]a71c6d7a1e682c69be97998dfc87eL747
Here is the fix we added yesterday: https://github.com/dfinity/dre/commit/f029720988584e4a24450be4f83c439c3bf4738e#diff-13ee4b2252c9e516a0547f2891aa[…]71c6d7a1e682c69be97998dfc87eL6037
The issue is how the axum-otel-metrics works:
Axum otel metrics configures a global meter which is returned as a static variable. Since that global meter is a part of opentelemetry crate, if we have two different versions we won't see any of our custom metrics on service discovery.

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner June 18, 2024 09:12
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

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

TY!

@NikolaMilosa NikolaMilosa merged commit a92e88e into main Jun 18, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-ensure-compatbile-opentelemetry-versions branch June 18, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants