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

Improve efficiency of ETW metrics exporter #134

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

mattbodd
Copy link
Contributor

@mattbodd mattbodd commented Dec 3, 2024

Fixes #104
Design Decisions:

  • Follow .Net and C++ implementations and use helper methods to serialize fragments of metric points into a coherent, exportable buffer
  • Construct a new ResourceMetrics for each metric point and serialize each into an exportable buffer

Changes

Please provide a brief description of the changes here.

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

Copy link

codecov bot commented Dec 3, 2024

Codecov Report

Attention: Patch coverage is 74.76636% with 27 lines in your changes missing coverage. Please review.

Project coverage is 53.9%. Comparing base (67b30de) to head (b29b530).

Files with missing lines Patch % Lines
opentelemetry-etw-metrics/src/exporter/mod.rs 74.7% 27 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #134     +/-   ##
=======================================
- Coverage   54.1%   53.9%   -0.3%     
=======================================
  Files         42      42             
  Lines       6276    6135    -141     
=======================================
- Hits        3401    3311     -90     
+ Misses      2875    2824     -51     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mattbodd
Copy link
Contributor Author

Comparing the latest exporter benchmark results between the proposed export implementation and the previous export implementation, there is a ~26% improvement.

@mattbodd mattbodd marked this pull request as ready for review December 17, 2024 20:42
@mattbodd mattbodd requested a review from a team as a code owner December 17, 2024 20:42
@mattbodd
Copy link
Contributor Author

Comparing the latest exporter benchmark results between the proposed export implementation and the previous export implementation, there is a ~26% improvement.

With a more realistic ResourceMetrics, the improvement looks to be closer to 38%

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.

Etw-Metrics - Improvements required
3 participants