Skip to content
Snippets Groups Projects
Commit 7cb22649 authored by ale's avatar ale
Browse files

Set client trace mode

parent 30d27a52
No related branches found
No related tags found
No related merge requests found
......@@ -160,7 +160,7 @@ func (p *ConnectionPool) doRequest(ctx context.Context, name string, attrs []att
// Tracing: initialize a new client span.
var span trace.Span
if tracing.Enabled {
ctx, span = tracing.Tracer.Start(ctx, name)
ctx, span = tracing.Tracer.Start(ctx, name, trace.WithSpanKind(trace.SpanKindClient))
defer span.End()
if len(attrs) > 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment