-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finagle-core: Introduce local tracing and fix trace timing operations
Problem Finagle does not have a nice API for generating local spans. In addition, several existing APIs that approximate simple use cases, and have been used, for local spans do not work as advertised and have caused confusion when expected information does not appear in the resulting traces. Specifically, the `Trace#time` and the `Trace#timeFuture` APIs silently discard all timing information. Solution/Result Introduce a new `Trace#localSpan` API to accurately annotate spans with a beginning and ending annotation/timestamp. In addition, fix the `Trace#time` and `Trace#timeFuture` APIs to record the measured time using a `BinaryAnnotation`. These features can either be used together or separately to provide a richer set of functionality than previously available. JIRA Issues: CSL-7502 Differential Revision: https://phabricator.twitter.biz/D404869
- Loading branch information
David Rusek
authored and
jenkins
committed
Dec 11, 2019
1 parent
3007e5d
commit 1c6d5d2
Showing
5 changed files
with
204 additions
and
24 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
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
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