Skip to content

Commit 59b77da

Browse files
committed
Replace attributes in WithDefaultAttributes
1 parent 1b1c082 commit 59b77da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

options.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,6 @@ func WithQueryParams(b bool) TraceOption {
150150
// WithDefaultAttributes will be set to each span as default.
151151
func WithDefaultAttributes(attrs ...trace.Attribute) TraceOption {
152152
return func(o *TraceOptions) {
153-
o.DefaultAttributes = append(o.DefaultAttributes, attrs...)
153+
o.DefaultAttributes = attrs
154154
}
155155
}

0 commit comments

Comments
 (0)