-
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.
Add support for CONSUMER and PRODUCER span kinds (#520)
Previously these span kinds were not supported because OpenCensus does not have equivalent span kinds and they were translated as "Unspecified" span kind when received by Zipkin receiver. Now these span kinds are internally stored in a span attribute named "span.kind" when received by Zipkin receiver. When exporting, this attribute is used to perform a reverse translation in Zipkin exporter. "span.kind" also matches the OpenTracing semantic conventions so it should be correctly interpreted by any backend that follows this convention. ## To reviewers: The code that does translation from OC to Zipkin is moved from exporter/zipkinexporter/zipkin.go to translator/trace/zipkin/protospan_to_zipkinv1.go. protospan_to_zipkinv1.go is not all new code, only the code that deals with span kind is to be reviewed. Testing done: - Added a unit test to verify translations between Zipkin,OC and Jaeger. - TODO: Add E2E test to verify these translations on real pipelines.
- Loading branch information
1 parent
1f803d7
commit d9352db
Showing
10 changed files
with
655 additions
and
401 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
Oops, something went wrong.