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

Set SpanKind for HTTP and gRPC requests #614

Merged
merged 1 commit into from
Mar 20, 2018

Conversation

rakyll
Copy link
Contributor

@rakyll rakyll commented Mar 20, 2018

No description provided.

Copy link
Member

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

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

Cool, just some minor typo.

@@ -25,6 +25,8 @@ import (
// traces. Use with gRPC clients only.
type ClientHandler struct {
// StartOptions allows configuring the StartOptions used to create new spans.
//
// SpanKind will always set to SpanKindClient for spans started with this handler.
Copy link
Member

Choose a reason for hiding this comment

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

will always be set to SpanKindClient for spans started by

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -46,6 +46,8 @@ type ServerHandler struct {
// ensures that each service has some opportunity to be traced. If you would
// like to not add any additional traces for this gRPC service, set:
// StartOptions.Sampler = trace.ProbabilitySampler(0.0)
//
// SpanKind will always set to SpanKindServer for spans started from this handler.
Copy link
Member

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Member

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @rakyll!

@rakyll rakyll merged commit 7b6adb7 into census-instrumentation:master Mar 20, 2018
@rakyll rakyll deleted the kind branch March 20, 2018 22:19
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.

2 participants