Merge pull request 'tracer: append labels' (#326) from tracerfix into v3
Reviewed-on: #326
This commit is contained in:
commit
aef7f53d88
@ -100,13 +100,13 @@ type EventOption func(o *EventOptions)
|
|||||||
|
|
||||||
func WithEventLabels(kv ...interface{}) EventOption {
|
func WithEventLabels(kv ...interface{}) EventOption {
|
||||||
return func(o *EventOptions) {
|
return func(o *EventOptions) {
|
||||||
o.Labels = kv
|
o.Labels = append(o.Labels, kv...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func WithSpanLabels(kv ...interface{}) SpanOption {
|
func WithSpanLabels(kv ...interface{}) SpanOption {
|
||||||
return func(o *SpanOptions) {
|
return func(o *SpanOptions) {
|
||||||
o.Labels = kv
|
o.Labels = append(o.Labels, kv...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user