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

Introduce SpanKind support #610

Merged
merged 2 commits into from
Mar 20, 2018
Merged

Conversation

rakyll
Copy link
Contributor

@rakyll rakyll commented Mar 20, 2018

Updates #525.

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.

Thank you @rakyll, LGTM!

trace/trace.go Outdated
@@ -100,6 +100,13 @@ func WithSpan(parent context.Context, s *Span) context.Context {
return context.WithValue(parent, contextKey{}, s)
}

// All available span kinds.
const (
SpanKindUnspecified = iota
Copy link
Member

Choose a reason for hiding this comment

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

Perfect, I was just about to comment on this, on the previous change to ask for this change :)

@rakyll
Copy link
Contributor Author

rakyll commented Mar 20, 2018

@bogdandrutu @Ramonza want to take a look before I merge? This is an API addition.


// TODO(jbd): Remove start options.
// SpanKind represents the kind of a span. If none is set,
// SpanKindUnspecified is used.
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 specify that these must be one of the SpanKindUnspecified, SpanKindServer, SpanKindClient

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

@rakyll rakyll merged commit 0967e1d into census-instrumentation:master Mar 20, 2018
@rakyll rakyll deleted the spankind branch March 20, 2018 19:58
@rakyll rakyll mentioned this pull request Mar 29, 2018
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.

None yet

3 participants