fixup tracing
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
6499c64759
commit
0dfee57dd4
1
conn.go
1
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()
|
||||
|
Loading…
Reference in New Issue
Block a user