-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
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 🤔
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'm just worrying if users might come across this and think they have to set sendMetrics = false
to turn it off, especially if we prefer them using the telemetry command 🤔
src/content/docs/workers/wrangler/system-environment-variables.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/workers/wrangler/system-environment-variables.mdx
Outdated
Show resolved
Hide resolved
e59c9d2
to
2e32bb6
Compare
|
||
### `status` | ||
|
||
Check whether telemetry collection is currently enabled. This will resolve the global status set by `wrangler telemetry disable / enable`, the environment variable [`WRANGLER_SEND_METRICS`](/workers/wrangler/system-environment-variables/#supported-environment-variables) and the [`send_metrics`](/workers/wrangler/configuration/#top-level-only-keys) key in `wrangler.toml`. |
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.
Probably a very basic question, but what do we mean by "resolve"?
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 could be set at a project or user/global level, so this command 'resolves' the telemetry status given where you've run the command. so if you've globally enabled it with npx wrangler telemetry enable
but put in send_metrics=false
in a specific projects' config, then running npx wrangler telemetry status
while you're in that project folder would say telemetry is disabled.
happy to update if you've got a better way of phrasing it though! :))
Co-authored-by: Jun Lee <junlee@cloudflare.com>
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