-
Notifications
You must be signed in to change notification settings - Fork 506
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 multi-threaded test for Counter #1858
Improve multi-threaded test for Counter #1858
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1858 +/- ##
=====================================
Coverage 74.5% 74.5%
=====================================
Files 122 122
Lines 19809 19859 +50
=====================================
+ Hits 14760 14808 +48
- Misses 5049 5051 +2 ☔ View full report in Codecov by Sentry. |
…om/utpilla/opentelemetry-rust into Update-counter-multithreaded-tests
for i in 0..10 { | ||
thread::scope(|s| { | ||
s.spawn(|| { | ||
counter.add(1, &[KeyValue::new("key1", "value1")]); |
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.
add 1-3 diff. timeseries
add 1 with 0 attributes.
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.
and a separate test for overflow part.
|
||
for thread in update_threads { | ||
thread.join().unwrap(); | ||
for i in 0..10 { |
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.
nit: maybe use 2x number of cores in the machine?
Follow-up to #1845
Changes