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...) } }