From 26908c1d44ced90059bd1d53f31e3419a1939797 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Wed, 16 Apr 2025 06:54:50 +0300 Subject: [PATCH] fixup panic on otel attribute.KeyValue label Signed-off-by: Vasiliy Tolstov --- opentracing.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opentracing.go b/opentracing.go index 93fac3f..f016c22 100644 --- a/opentracing.go +++ b/opentracing.go @@ -10,7 +10,6 @@ import ( "go.opentelemetry.io/otel/attribute" "go.unistack.org/micro/v3/metadata" "go.unistack.org/micro/v3/tracer" - "go.unistack.org/micro/v3/util/sort" ) var _ tracer.Tracer = &otTracer{} @@ -183,7 +182,7 @@ func (os *otSpan) Finish(opts ...tracer.SpanOption) { options.Labels = options.Labels[:len(options.Labels)-1] } - os.opts.Labels = sort.Uniq(os.opts.Labels) + // options.Labels = sort.Uniq(options.Labels) l := len(options.Labels) for idx := 0; idx < l; idx++ {