Skip to content

Commit

Permalink
feat: Deprecate user segment
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Dec 11, 2024
1 parent a59bd69 commit fa08033
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,17 @@ type Attachment struct {
// User describes the user associated with an Event. If this is used, at least
// an ID or an IP address should be provided.
type User struct {
ID string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
IPAddress string `json:"ip_address,omitempty"`
Username string `json:"username,omitempty"`
Name string `json:"name,omitempty"`
Segment string `json:"segment,omitempty"`
Data map[string]string `json:"data,omitempty"`
ID string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
IPAddress string `json:"ip_address,omitempty"`
Username string `json:"username,omitempty"`
Name string `json:"name,omitempty"`
// Segment is a string representing the user segment that the user belongs to.
//
// Deprecated: Segment is deprecated and will be removed in the next major
// of the Sentry Go SDK.
Segment string `json:"segment,omitempty"`
Data map[string]string `json:"data,omitempty"`
}

func (u User) IsEmpty() bool {
Expand Down

0 comments on commit fa08033

Please sign in to comment.