-
Notifications
You must be signed in to change notification settings - Fork 165
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
Implement Exponential Histgoram metrics #525
Implement Exponential Histgoram metrics #525
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #525 +/- ##
==========================================
+ Coverage 67.41% 68.41% +0.99%
==========================================
Files 335 344 +9
Lines 14585 15151 +566
==========================================
+ Hits 9833 10365 +532
- Misses 4752 4786 +34 ☔ View full report in Codecov by Sentry. |
e8b506a
to
6e5e46e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really great work, just some minor stylistic issues.
Sources/OpenTelemetrySdk/Metrics/Stable/Aggregation/AdaptingCircularBufferCounter.swift
Outdated
Show resolved
Hide resolved
Sources/OpenTelemetrySdk/Metrics/Stable/Aggregation/AdaptingCircularBufferCounter.swift
Outdated
Show resolved
Hide resolved
Sources/OpenTelemetrySdk/Metrics/Stable/Data/Internal/Base2ExponentialHistogramIndexer.swift
Outdated
Show resolved
Hide resolved
Sources/OpenTelemetrySdk/Metrics/Stable/Data/Internal/ExponentialHistogramPointData.swift
Outdated
Show resolved
Hide resolved
b7d34be
to
562162e
Compare
562162e
to
f69c8b2
Compare
Thanks for the review @nachoBonafonte ! I've updated the PR with your feedback and rebase it to the latest main. Please let me know if you still have any further feedback or concern. Thanks, |
This PR implements
ExponentialHistogram
metric in Swift SDK. Most of the implementations was inspired and driven by https://github.com/open-telemetry/opentelemetry-java SDK. It has been validated with Java SDK to ensure that it generates the same results and passes the same tests for the most part.There might be some missing area that I might have missed on this, but this should be good enough for us to starting point for supporting Exponential Histogram.
I have excluded the implementation of Exponential Histogram on the old metric and only implemented it for Stable Metrics.
Note: I just notice the spacing/indentation issue on this PR, will follow up shortly on this.Fixed the indentation issues and added few more testings