Rc1 add async examples#1
Open
carlosalberto wants to merge 6 commits intomasterfrom
Open
Conversation
Part of handling the examples related to multiple asynchronous callbacks, an AutoFinishScopeManager has been included, which mimics the ref counting in the previous ActiveSpan approach.
This includes execution flow similar to: * Actor ask/tell * Promises with callbacks * Work interleaved on a thread using suspend/resume. The implementations of these execution models are obviously very simplistic, but intended to emphasize the tracing aspect. These tests also make heavy use of the Phaser in order to insure deterministic execution of the tests for multi-threaded execution. Hopefully this does not detract from the examples too much.
* ThreadLocalScopeManager (without Continuation) where it's possible to predict where the Span should be finished. * AutoCloseScopeManager, where a ref-counting scenario is needed.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.