diff --git a/ldap/pool.go b/ldap/pool.go index a605d81c7bce7cd3edf23f38f12221a5234159d3..12a6588d4ce9836101ce90377be0abaaf3e204bb 100644 --- a/ldap/pool.go +++ b/ldap/pool.go @@ -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 {