-
Notifications
You must be signed in to change notification settings - Fork 34
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
Emit metric points as unique ETW events #111
Emit metric points as unique ETW events #111
Conversation
…itted for each data point within metrics
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #111 +/- ##
=======================================
+ Coverage 52.3% 58.3% +6.0%
=======================================
Files 38 39 +1
Lines 4967 5806 +839
=======================================
+ Hits 2598 3390 +792
- Misses 2369 2416 +47 ☔ View full report in Codecov by Sentry. |
….com:mattbodd/opentelemetry-rust-contrib into dev/mboddewy/emit_etw_metrics_point_by_point
))); | ||
} | ||
|
||
for resource_metric in resource_metrics { |
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.
the approach used in this PR is extremely inefficient, as it clones the entire metrics and recreates them into a format that the opentelemetry-proto is able to serialize. This is okay for alpha, and will help resolve the size limit issue, but this must be done in a efficient way before stabilizing the component. (that might require support from upstream sdk)
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.
Agreed. I'm working on a more performant solution but am proposing this PR as an immediate fix for #104
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.
This is okay for an immediate fix.
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.
LGTM as a mitigation for the ETW size limit issue. Definitely need to redesign this to avoid the clone/copy works.
Please add an entry to changelog.md file and we can merge.
Part of #104
Changes
opentelemetry_sdk::metrics::data::ResourceMetrics
for eachopentelemetry_sdk::metrics::data::Metric
data point and emits these as ETW eventsMerge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes