forked from jaegertracing/jaeger-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove synchronized on PerOperationSampler.sample
- Use a ConcurrentHashMap for operationNameToSampler so that any number of concurrent calls to sample can be made and safely modify it. - Add volatile to any fields that can be changed by the update method to ensure visibility of changes to other threads. - Retain instances of GuaranteedThroughputSampler to preserve their rate limit balances across updates when parameters don't change improving on jaegertracing/jaeger#1729 See jaegertracing#609 for similar work. Fixes jaegertracing#807 Signed-off-by: Will Tran <will@autonomic.ai>
- Loading branch information
Will Tran
committed
Oct 14, 2021
1 parent
f9a9592
commit c0cf6fd
Showing
2 changed files
with
86 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters