tracer: append labels
pr / test (pull_request) Successful in 1m35s Details
lint / lint (pull_request) Successful in 10m38s Details

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-03-17 00:17:10 +03:00
parent f29a346434
commit 02c8e4fb7f
1 changed files with 2 additions and 2 deletions

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