tracer: append labels #326

Merged
vtolstov merged 1 commits from tracerfix into v3 2024-03-17 00:18:24 +03:00
Showing only changes of commit 02c8e4fb7f - Show all commits

View File

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