-
Notifications
You must be signed in to change notification settings - Fork 1k
fix(crwa): Fixes telemetry issues on CRWA #6434
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fa2dd5b
Make sure typescript is dependency not dev dep of internal
dac09 e7c93dd
Enable linting rules for structure, so we don't import all of rwjs/in…
dac09 50a8e7c
More Telemetry README info to help diagnose issues
dthyresson ed1e537
docs: Update readme with debugging crwa info
dac09 6e0bbde
Update packages/telemetry/README.md
dac09 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,49 @@ | ||
| # Telemetry | ||
|
|
||
| https://telemetry.redwoodjs.com | ||
| RedwoodJS collects completely anonymous telemetry data about general usage. | ||
|
|
||
| Here is an example JSON packet containing the telemetry data for running yarn rw info: | ||
|
|
||
| ```json | ||
| { | ||
| type: 'command', | ||
| command: 'info', // actual CLI command that was invoked, including flags | ||
| ci: false, // whether or not this is running in a CI environment | ||
| duration: 2353, // how long the process took, in milliseconds | ||
| NODE_ENV: 'development', // the value of NODE_ENV, if set | ||
| complexity: '4.2.6.3', // a measure of how complex the app is (route, service, cell and page counts) | ||
| system: '8.32', // cpu core count, memory in GB | ||
| sides: 'web,api', // sides that are in use | ||
| shell: 'zsh', | ||
| nodeVersion: '14.17.1', | ||
| yarnVersion: '14.17.1', | ||
| npmVersion: '14.17.1', | ||
| vsCodeVersion: '1.58.0', | ||
| redwoodVersion: '0.35.1', | ||
| os: 'macOS', | ||
| osVersion: '11.4', | ||
| system: '8.32' // number of cpu cores and system memory | ||
| } | ||
| ``` | ||
|
|
||
| ## How do I turn it off? | ||
|
|
||
| Set an environment variable, either in your app's .env file, or anywhere that creates variables for your user space, like `.bashrc` or `.bash_profile`: | ||
|
|
||
| ```terminal | ||
| REDWOOD_DISABLE_TELEMETRY=1 | ||
| ``` | ||
|
|
||
| ## About | ||
|
|
||
| See: https://telemetry.redwoodjs.com | ||
|
|
||
| ## Troubleshooting | ||
|
|
||
| If you suspect problems with telemetry when running CRWA, you set the verbose flag to help diagnose issues. | ||
|
|
||
| For example, | ||
|
|
||
| ```terminal | ||
| REDWOOD_VERBOSE_TELEMETRY=true yarn create-redwood-app bazinga | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.