Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: group trait telemetry #3381

Merged
merged 1 commit into from
Oct 6, 2022
Merged

fix: group trait telemetry #3381

merged 1 commit into from
Oct 6, 2022

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