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

Telemetry: Use a wrapper around all CLI commands to send boot and error events #19566

Merged
merged 5 commits into from
Oct 24, 2022

Conversation

tmeasday
Copy link
Member

Issue: we lost error telemetry in 7.0 somehow.

What I did

  • Added withTelemetry wrapper to deal with errors consistently
  • Added a 'boot' event that gets sent (with no data) immediately to aid debugging
  • Changed event names for consistently

How to test

  • See tests
  • Run CLI against various projects

@tmeasday tmeasday requested a review from shilman October 21, 2022 06:09
@@ -260,7 +262,7 @@ export async function initiate(options: CommandOptions, pkg: Package): Promise<v
logger.log(chalk.inverse(`\n ${welcomeMessage} \n`));

if (!options.disableTelemetry) {
telemetry('init');
telemetry('init', {}, { stripMetadata: true });
Copy link
Member Author

Choose a reason for hiding this comment

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

This was failing trying to find the metadata. I'm not really sure what changed, but we don't need it / can't find it anyway.

@tmeasday tmeasday added maintenance User-facing maintenance tasks telemetry labels Oct 21, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

Tests are really nice. Great job! 💯

@tmeasday tmeasday merged commit 26324ef into next Oct 24, 2022
@tmeasday tmeasday deleted the tom/sb-832-restore-crash-reporting-in-v7-and branch October 24, 2022 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks telemetry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants