CLI and APIs
Turn off the crash reports of src
You want src to send nothing from your computer. Set one variable in the startup file of your shell, and src sends no crash report.
2 min read
Turn the reports off
export SRC_NO_TELEMETRY=1
In PowerShell, add $env:SRC_NO_TELEMETRY = '1' to $PROFILE.
In a new terminal, src sends no crash report.
DO_NOT_TRACK=1does the same.- Any value turns the reports off, except an empty value and
0. - A
srcthat you build yourself has no Sentry address (DSN), so it sends nothing.
When src sends a report
Without the variable, src sends a report to Sentry only when it stops on an error that no command expected:
- an uncaught exception
- an unhandled promise rejection
- a fault inside a command
Normal errors send nothing: a wrong flag, an error message that a command prints on purpose, or an answer of the forge (a refusal or a 404). src waits at most 2 seconds for the report to go.
What a report holds
A report holds only:
- The type and the message of the error. Secrets in the message are redacted, and paths in your home folder become
[path]. - The stack frames, with the file name only, not the full path.
- The command words, such as
pr create. Never the arguments, the flag values or a repository name. - The version of
src: the commit that it was built from. - Your operating system and your Node.js version.
A report has no environment variables, no tokens, and no record of the steps before the error.