-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace built-in tracing with OpenTracing Changes: * internal span reporting completely removed and replaced with OpenTracing * span context and baggage are propagated via application headers (json only atm, thrift next) * channel can be configured with `opentracing.Tracer`, otherwise it defaults to `opentracing.GlobalTracer()` (which is no-op by default) * outbound calls tracing * span is started in `(c *Connection) beginCall` * if tracer understands "zipkin" format, then the tracing fields are populated in `callReq` * the actual span/baggage info is injected in `json/call.go` * span is stored in `Response` and finished in a couple of places in `outbound.go` * inbound requests tracing * if tracer understands "zipkin" format, the span is started in `inbound.go` and baggage is added in the encoding handler * otherwise span is started in the encoding handler only * finished generically in completion callbacks in `inbound.go`
- Loading branch information
1 parent
c169681
commit 114c2b7
Showing
37 changed files
with
1,280 additions
and
4,689 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
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
Oops, something went wrong.