-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[wrangler]: add wrangler telemetry
commands and update existing info on telemetry collection
#18350
base: production
Are you sure you want to change the base?
Conversation
Deploying cloudflare-docs with Cloudflare Pages
|
@@ -296,7 +296,7 @@ Inheritable keys are configurable at the top-level, and can be inherited (or ove | |||
|
|||
- `send_metrics` <Type text="boolean" /> <MetaInfo text="optional" /> | |||
|
|||
- Whether Wrangler should send usage metrics to Cloudflare for this project. | |||
- Whether Wrangler should send usage metrics to Cloudflare for this project. Defaults to `true`. You can learn more about this in our [data policy](https://github.com/cloudflare/workers-sdk/tree/main/telemetry.md). |
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.
How about this?
Fallbacks to the current wrangler metrics status if not defined. You can learn more about this in our data policy
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.
seems a bit sneaky to hide that its on by default behind an extra click 🤔
@@ -41,6 +41,7 @@ Wrangler offers a number of commands to manage your Cloudflare Workers. | |||
- [`dispatch-namespace`](#dispatch-namespace) - Interact with a [dispatch namespace](/cloudflare-for-platforms/workers-for-platforms/reference/how-workers-for-platforms-works/#dispatch-namespace). | |||
- [`mtls-certificate`](#mtls-certificate) - Manage certificates used for mTLS connections. | |||
- [`types`](#types) - Generate types from bindings and module rules in configuration. | |||
- [`telemetry`](#telemetry) - Configure whether Wrangler can collect anonymous usage telemetry |
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.
- [`telemetry`](#telemetry) - Configure whether Wrangler can collect anonymous usage telemetry | |
- [`telemetry`](#telemetry) - Configure whether Wrangler can collect anonymous usage data. |
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.
or another option: "Manage Wrangler's collection of anonymous usage data"
|
||
Cloudflare collects anonymous usage data to improve Wrangler. You can learn more about this in our [data policy](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md). | ||
|
||
You can opt-out of sharing telemetry data at any time using these commands. |
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.
You can opt-out of sharing telemetry data at any time using these commands. | |
You can manage sharing usage data at any time using these commands. |
just trying to reduce the different ways we talk about this. feel like maybe we should keep language to "usage data" as what we collect and "telemetry" as the concept
|
||
* The default value is `"https://api.cloudflare.com/client/v4"`. | ||
- Options for this are `true` and `false`, the default behavior is `true`. Controls whether Wrangler can send anonymous usage metrics to Cloudflare for this project. You can learn more about this in our [data policy](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md). |
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.
- Options for this are `true` and `false`, the default behavior is `true`. Controls whether Wrangler can send anonymous usage metrics to Cloudflare for this project. You can learn more about this in our [data policy](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md). | |
- Options for this are `true` and `false`. Defaults to `true`. Controls whether Wrangler can send anonymous usage data to Cloudflare for this project. You can learn more about this in our [data policy](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md). |
|
||
- Options for Logging levels are `"none"`, `"error"`, `"warn"`, `"info"`, `"log"` and `"debug"`. Levels are case-insensitive and default to `"log"`. If an invalid level is specified, Wrangler will fallback to the default. |
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.
should we specify here that "log" level will print telemetry data?
|
||
### `status` | ||
|
||
Check whether telemetry collection is currently enabled. |
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.
i think we should note here that it's a function of global setting, WRANGLER_SEND_METRICS, and send_metrics, and then point to the data policy, where it's specified the priority of the parameters
Summary
Wrangler will be enabling telemetry collection by default for new users (see cloudflare/workers-sdk#7291).
This PR documents the new
wrangler telemetry enable/disable/status
commands that have been added in the process, and updates existing references to telemetry collection in Wrangler, including adding links to our data policy.Documentation checklist