-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Opentracing ScopeManager implementation based on our context (#110)
Implementation of ScopeManager based on our own AbstractThreadLocalContext class with the following advantages over the 'standard' opentracing-util ThreadLocalScopeManager: 1. Close is explicitly idempotent; closing more than once has no additional side-effects (even when finishOnClose is set to true). 2. More predictable behaviour for out-of-order closing of scopes. Although this is explicitly unsupported by the opentracing specification, we think having consistent and predictable behaviour is an advantage. 3. Support for {@link nl.talsmasoftware.context.observer.ContextObserver}. See opentracing/opentracing-java#334 why this is an advantage. Signed-off-by: Sjoerd Talsma <[email protected]>
- Loading branch information
1 parent
65307a3
commit 74a3274
Showing
1 changed file
with
11 additions
and
38 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