Skip to content

Make description of Samplers Locale independent - #4887

Merged
jack-berg merged 3 commits into
open-telemetry:mainfrom
lmonkiewicz:4880
Oct 31, 2022
Merged

Make description of Samplers Locale independent#4887
jack-berg merged 3 commits into
open-telemetry:mainfrom
lmonkiewicz:4880

Conversation

@lmonkiewicz

Copy link
Copy Markdown
Contributor

Fixes: #4880

@lmonkiewicz
lmonkiewicz requested a review from a team October 26, 2022 11:02
@codecov

codecov Bot commented Oct 26, 2022

Copy link
Copy Markdown

Codecov Report

Base: 90.83% // Head: 90.83% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (0a477da) compared to base (a46dd00).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4887      +/-   ##
============================================
- Coverage     90.83%   90.83%   -0.01%     
- Complexity     4856     4859       +3     
============================================
  Files           556      556              
  Lines         14474    14483       +9     
  Branches       1410     1410              
============================================
+ Hits          13148    13155       +7     
- Misses          908      909       +1     
- Partials        418      419       +1     
Impacted Files Coverage Δ
...sion/trace/jaeger/sampler/RateLimitingSampler.java 88.88% <100.00%> (+3.17%) ⬆️
...y/sdk/trace/samplers/TraceIdRatioBasedSampler.java 86.66% <100.00%> (+2.05%) ⬆️
...metry/sdk/metrics/export/PeriodicMetricReader.java 87.14% <0.00%> (-2.86%) ⬇️
.../opentelemetry/sdk/metrics/AbstractInstrument.java 41.66% <0.00%> (+5.30%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jack-berg jack-berg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just one small comment. Thanks!

@lmonkiewicz

Copy link
Copy Markdown
Contributor Author

Just one small comment. Thanks!

Changed.

@trask trask left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@jack-berg what do you think about calculating it once in the constructor? getDescription is not supposed to be called a lot, but just in case...

and I think the extra small amount of memory is ok since there shouldn't be a huge number of Sampler instances

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.

Samplers use Locale dependent formatting for description

4 participants