Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing spanKind to tracing. #3956

Open
wants to merge 2 commits into
base: edge
Choose a base branch
from

Conversation

Excds
Copy link

@Excds Excds commented Jun 8, 2023

This adds missing spanKind to tracing. I think I found all of them, but please point out if I didn't.

@Excds Excds requested review from a team, labkode, ishank011 and glpatcern as code owners June 8, 2023 10:45
@update-docs
Copy link

update-docs bot commented Jun 8, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@@ -115,7 +115,10 @@ func NewUnary(m map[string]interface{}, unprotected []string, tp trace.TracerPro
span := trace.SpanFromContext(ctx)
defer span.End()
if !span.SpanContext().HasTraceID() {
ctx, span = tp.Tracer(tracerName).Start(ctx, "grpc auth unary")
spanOpts := []trace.SpanStartOption{
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should not add a new tracer for every middleware... 🤔

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

Successfully merging this pull request may close these issues.

2 participants