From 7cb22649941e29584e8b8288a4aace65e28e422a Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Sun, 14 Aug 2022 08:49:39 +0100 Subject: [PATCH] Set client trace mode --- ldap/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldap/pool.go b/ldap/pool.go index a605d81..12a6588 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 { -- GitLab