diff --git a/types/events.go b/types/events.go index 019a53f1f6..a3f9742757 100644 --- a/types/events.go +++ b/types/events.go @@ -65,7 +65,7 @@ func NewEvent(ty string, attrs ...Attribute) Event { e := Event{Type: ty} for _, attr := range attrs { - e.Attributes = append(e.Attributes, NewAttribute(attr.Key, attr.Value).ToKVPair()) + e.Attributes = append(e.Attributes, attr.ToKVPair()) } return e