Skip to content

fix: group trait telemetry#3381

Merged
jmorganca merged 1 commit intomainfrom
gt
Oct 6, 2022
Merged

fix: group trait telemetry#3381
jmorganca merged 1 commit intomainfrom
gt

Conversation

@jmorganca
Copy link
Contributor

No description provided.

}

func (t *Telemetry) Event(event string, userId string, properties ...map[string]interface{}) {
func (t *Telemetry) Event(event string, userId string, orgId string, properties ...map[string]interface{}) {
Copy link
Collaborator

@mxyng mxyng Oct 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add orgID directly into properties?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not an optional property and should be included in every event.

UserId: userID,
Traits: map[string]interface{}{
"name": name,
"$name": name,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the difference between name and $name here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One is a "super property". Some tools require both

Copy link
Collaborator

@BruceMacD BruceMacD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me

@jmorganca jmorganca merged commit 62da714 into main Oct 6, 2022
@jmorganca jmorganca deleted the gt branch October 6, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants