From 0dfee57dd4d7bbfcbdfa6e7b258f6060fbfd7e74 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sun, 14 Apr 2024 23:24:44 +0300 Subject: [PATCH] fixup tracing Signed-off-by: Vasiliy Tolstov --- conn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/conn.go b/conn.go index f3c03d4..610bf38 100644 --- a/conn.go +++ b/conn.go @@ -315,6 +315,7 @@ func (w *wrapperConn) Ping(ctx context.Context) error { } else { nctx, span = w.opts.Tracer.Start(ctx, "sdk.database", tracer.WithSpanKind(tracer.SpanKindClient)) } + span.AddLabels("db.method", "Ping") defer span.Finish() labels := []string{labelMethod, "Ping"} ts := time.Now()