Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Add Span kind to the Span. #51

Merged
merged 1 commit into from
Mar 3, 2018

Conversation

bogdandrutu
Copy link
Contributor

Proposal for adding a span kind that can be used also as an identity for the Span, this way we can remove the prefix "Sent." and "Recv." from the span names in grpc and http.


// Indicates that the span covers the client-side wrapper around an RPC or
// other remote request.
CLIENT = 2;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add PRODUCER and CONSUMER as they are widely used, and indicate sending to a broker instead of directly to a server and visa versa

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenTracing also has producer and consumer types. Might be good if we have that.

@codefromthecrypt
Copy link
Contributor

This is good progress, and CLIENT/SERVER is already handled in census by grpc instrumentation (and the upcoming http work). Let's not forget PRODUCER/CONSUMER but I agree that there should be some code driving that. In java you can look at this https://github.com/openzipkin/brave/tree/master/instrumentation/kafka-clients

and also the span kind definition in zipkin for later stuff. For now, let's merge as it gets a large percentage of instrumentation.. instrumentable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants