From 02c8e4fb7fe88611687590ca1f1bcde7dafa3baa Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Sun, 17 Mar 2024 00:17:10 +0300 Subject: [PATCH] tracer: append labels Signed-off-by: Vasiliy Tolstov --- tracer/options.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tracer/options.go b/tracer/options.go index 1f7fc7f9..a243f03e 100644 --- a/tracer/options.go +++ b/tracer/options.go @@ -100,13 +100,13 @@ type EventOption func(o *EventOptions) func WithEventLabels(kv ...interface{}) EventOption { return func(o *EventOptions) { - o.Labels = kv + o.Labels = append(o.Labels, kv...) } } func WithSpanLabels(kv ...interface{}) SpanOption { return func(o *SpanOptions) { - o.Labels = kv + o.Labels = append(o.Labels, kv...) } } -- 2.45.2