Skip to content

Commit

Permalink
omit empty on non id fields (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
kat-statsig authored Jul 25, 2024
1 parent 2d84feb commit 6c9e4ad
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ package statsig
// experiments and etc; they are omitted in logs.
type User struct {
UserID string `json:"userID"`
Email string `json:"email"`
IpAddress string `json:"ip"`
UserAgent string `json:"userAgent"`
Country string `json:"country"`
Locale string `json:"locale"`
AppVersion string `json:"appVersion"`
Custom map[string]interface{} `json:"custom"`
PrivateAttributes map[string]interface{} `json:"privateAttributes"`
StatsigEnvironment map[string]string `json:"statsigEnvironment"`
Email string `json:"email,omitempty"`
IpAddress string `json:"ip,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Country string `json:"country,omitempty"`
Locale string `json:"locale,omitempty"`
AppVersion string `json:"appVersion,omitempty"`
Custom map[string]interface{} `json:"custom,omitempty"`
PrivateAttributes map[string]interface{} `json:"privateAttributes,omitempty"`
StatsigEnvironment map[string]string `json:"statsigEnvironment,omitempty"`
CustomIDs map[string]string `json:"customIDs"`
}

Expand Down

0 comments on commit 6c9e4ad

Please sign in to comment.