Skip to content

Commit

Permalink
Fix initial service discovery using context.Background() instead of s…
Browse files Browse the repository at this point in the history
…tream context
  • Loading branch information
kralicky committed Jun 26, 2023
1 parent dd0d903 commit 6b31ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (r *Server) Serve() (grpc.ClientConnInterface, <-chan error) {
ch <- runErr
}()

ctx, span := Tracer().Start(context.Background(), "Server.Serve/Discovery",
ctx, span := Tracer().Start(r.Context(), "Server.Serve/Discovery",
trace.WithAttributes(
attribute.String("name", r.name),
),
Expand Down

0 comments on commit 6b31ede

Please sign in to comment.