This repository has been archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make GlobalTracer uses more threadsafe (#269)
* Make GlobalTracer uses more threadsafe As discussed in #186 replace `void register(Tracer)` with a more atomic `boolean registerIfAbsent(Tracer)` method. * Throw NPE (with message) for registerIfAbsent(null) calls * Add '@deprecated' annotation + replace nested if by '&&'. * Remove registerIfAbsent(Tracer) as unwanted duplicate * Replace TracerSupplier interface with Callable<Tracer> * Document thrown exceptions * Combine javadoc for checked + unchecked exceptions from provider * Wording for rethrown exceptions from provider * Add brackets around 'if' statement * Add unit tests for registerIfAbsent + restore tests for register methods * Clarify wording used in unit test
- Loading branch information
1 parent
cb40981
commit 67f080c
Showing
2 changed files
with
154 additions
and
42 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