packages/wrangler/telemetry.md
Cloudflare gathers non-user identifying telemetry data about usage of Wrangler, the command-line interface for building and deploying Workers and Pages applications.
You can opt out of sharing telemetry data at any time.
Telemetry in Wrangler allows us to better identify bugs and gain visibility on usage of features across all users. It also helps us to make data-informed decisions like adding, improving or removing features. We monitor and analyze this data to ensure Wrangler’s consistent growth, stability, usability and developer experience. For instance, if certain errors are hit more frequently, those bug fixes will be prioritized in future releases.
wrangler deploy, wrangler dev)wrangler deploy ./src/index.ts --dry-run=true --outdir=dist would be sent as wrangler deploy REDACTED --dry-run=true --outdir=REDACTED)toml, jsonc)APIError or UserError), and sanitised error messages that will not include user information like filepaths or stack traces (e.g. Asset too large).Cloudflare will receive the IP address associated with your machine and such information is handled in accordance with Cloudflare’s Privacy Policy.
Note: This list is regularly audited to ensure its accuracy.
Cloudflare takes your privacy seriously and does not collect any sensitive information including: usernames, raw error logs, stack traces, file names/paths, content of files, and environment variables. Data is never shared with third parties.
To view what is being collected while using Wrangler, provide the following environment variable in your command:
WRANGLER_LOG=debug
e.g.
WRANGLER_LOG=debug npx wrangler deploy
Most of the telemetry source code used by Wrangler can be viewed at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/src/metrics. The rest of the telemetry related code is sparse across the Wrangler source, mostly it consists of sendMetricsEvent calls.
All the telemetry logic is run in the background and will not delay project execution. As a result, when necessary (e.g. no internet connection), it will fail quickly and quietly.
If you would like to disable telemetry, you can run:
npx wrangler telemetry disable
You may also configure telemetry on a per project basis by adding the following field to your project’s wrangler.toml:
send_metrics=false
Alternatively, you may set an environment variable to disable telemetry.
WRANGLER_SEND_METRICS=false
If you would like to re-enable telemetry globally, you can run:
npx wrangler telemetry enable
If you would like to check the status of Wrangler telemetry, you can run:
npx wrangler telemetry status