You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- initTelemetry is now fire-and-forget — client.start() runs in the
background so activation never blocks on it. trackEvent() was already
in-memory + batched, so subsequent sendEvent calls are non-blocking.
- Drop per-command COMMAND_INVOKED events. Replace with FEATURE_USED,
bucketed by broad category (sandbox/webdav/content/codeSync/apiBrowser/
debugger/scaffold/cap/pageDesigner/logs/instance) and deduped to one
event per category per session.
- Add b2c-dx.telemetry.enabled setting (default true). Telemetry is off
if any of the three signals say off: VS Code's telemetry.telemetryLevel,
this setting, or the SF/SFCC env var.
- Strip the Telemetry section from the docs site — the setting's
description in the VS Code Settings UI is the disclosure surface. Add
the row to the configuration page's settings reference table.
- Wire markFeatureUsed into the page-designer command and the script
debugger factory so non-safety-wrapped features still register usage.
Copy file name to clipboardExpand all lines: .changeset/vscode-telemetry.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,4 +2,4 @@
2
2
'b2c-vs-extension': minor
3
3
---
4
4
5
-
Add anonymous usage telemetry (extension lifecycle, command invocations, exceptions) to help prioritize fixes during the Developer Preview. Honors VS Code's `telemetry.telemetryLevel` setting and the `SFCC_DISABLE_TELEMETRY` / `SF_DISABLE_TELEMETRY` environment variables. No credentials, hostnames, or business data are collected. See the [Telemetry section in Configuration](https://salesforcecommercecloud.github.io/b2c-developer-tooling/vscode-extension/configuration#telemetry) for opt-out instructions and the full data inventory.
5
+
Add anonymous usage telemetry (extension activation/deactivation lifecycle, broad feature-category usage, exceptions) to help prioritize fixes during the Developer Preview. Sending is non-blocking. Honors the new `b2c-dx.telemetry.enabled` setting (default `true`), VS Code's `telemetry.telemetryLevel`, and the `SFCC_DISABLE_TELEMETRY` / `SF_DISABLE_TELEMETRY` environment variables. No credentials, hostnames, or business data are collected.
-[Telemetry](#telemetry) — what we collect and how to opt out.
15
14
-[Settings Reference](#settings-reference) — the `b2c-dx.*` toggles and verbosity controls.
16
15
17
16
## Connecting to a B2C Instance
@@ -76,24 +75,6 @@ In a multi-root workspace, the extension auto-detects the project root by walkin
76
75
77
76
The pin is workspace-scoped (stored in workspace state).
78
77
79
-
## Telemetry
80
-
81
-
The extension reports anonymous usage data to help us prioritize fixes during the Developer Preview.
82
-
83
-
**What we collect:** extension lifecycle events (`EXTENSION_ACTIVATED`, `EXTENSION_DEACTIVATED`, `ACTIVATION_FAILED`), command invocations (command ID, success/failure, duration), and exceptions. Each event includes anonymous session and machine identifiers, plus environment info (VS Code version, platform, architecture, Node.js version).
84
-
85
-
**What we don't collect:** credentials, hostnames, sandbox IDs, file contents, command arguments, or any business data. String attributes have `$HOME` redacted to `~` before transmission.
86
-
87
-
**Opt out** in any of the following ways — telemetry is disabled if **any** of them is true:
88
-
89
-
| Source | Setting |
90
-
| ------ | ------- |
91
-
| VS Code `settings.json`|`"telemetry.telemetryLevel": "off"` (also disables when set to `crash` or `error`) |
The extension respects VS Code's built-in `telemetry.telemetryLevel` first, so opting out of all VS Code telemetry automatically disables ours.
96
-
97
78
## Settings Reference
98
79
99
80
These VS Code settings live under the `b2c-dx.*` namespace. **You usually don't need to change any of them** — they exist for niche cases like disabling a feature you don't use, or quieting the log channel for a bug report. To browse: **Settings** (Cmd+,) → search for `b2c-dx`.
@@ -115,12 +96,13 @@ Each feature is enabled by default. Set to `false` to skip its activation entire
115
96
116
97
The B2C Script Debugger registers regardless of these toggles — it activates only when a `b2c-script` launch configuration is used.
117
98
118
-
### Verbosity & polling
99
+
### Verbosity, polling, telemetry
119
100
120
101
| Setting | Default | Description |
121
102
| ------- | ------- | ----------- |
122
103
|`b2c-dx.logLevel`|`info`| Verbosity for the **B2C DX** output channel. Allowed: `trace`, `debug`, `info`, `warn`, `error`, `silent`. Applied immediately on change. Drop to `debug` or `trace` when filing a bug. |
123
104
|`b2c-dx.sandbox.pollingInterval`|`10`| Seconds between polls while a sandbox is in a transitional state (`creating`, `starting`, `stopping`, `deleting`, `cloning`). Range: 2–300. Polling stops automatically once the realm settles. |
105
+
|`b2c-dx.telemetry.enabled`|`true`| Send anonymous usage telemetry. Honors VS Code's `telemetry.telemetryLevel` — disabling that disables this regardless of this setting. |
124
106
125
107
### Complete defaults (copy-paste)
126
108
@@ -136,7 +118,8 @@ The B2C Script Debugger registers regardless of these toggles — it activates o
Copy file name to clipboardExpand all lines: packages/b2c-vs-extension/package.json
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,11 @@
96
96
"type": "boolean",
97
97
"default": true,
98
98
"description": "Enable Code Sync (watch and deploy cartridges)."
99
+
},
100
+
"b2c-dx.telemetry.enabled": {
101
+
"type": "boolean",
102
+
"default": true,
103
+
"description": "Send anonymous usage telemetry (extension lifecycle and broad feature-category events). Honors VS Code's telemetry.telemetryLevel — disabling that disables this regardless of this setting."
0 commit comments