-
Notifications
You must be signed in to change notification settings - Fork 534
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
feat: add branch and pkg name to monitor analytics #543
Conversation
src/lib/monitor.ts
Outdated
analytics.add('branch', target.branch); | ||
} | ||
|
||
analytics.add('projectName', pkg.name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
project name will be calculated in Registry in the end and will unlikely be this name. Another important property is --project-name
option as it is the project name override that is also used to calculate project name on the other end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @lili2311 that's good to know. so that's why we're not sending it from CLI i guess... ok I'll talk to the BI team about it since it was their request and see if pkg name is enough for them and why they need that. pkg.name will always b there though no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok @lili2311 looks like we can send the ID as the project name from my few tests... wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which ID? Cli never knows if there is an existing project or not until we monitor. So when monitor
returns an id thats the only time we have something solid. Will that be enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the meta.id one... looks like it's similar to the project name? or is it just in npm and maven?
188ebd8
to
ece0759
Compare
55650d4
to
cb883ea
Compare
cb883ea
to
b91d2ae
Compare
🎉 This PR is included in version 1.171.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What does this PR do?
We want to add branch and project name to the data that we send to analytics.