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
feat(inspector/telemetry): propagate telemetryDisabled from runtime env var through inspector
- Add telemetryDisabled to RuntimeInfo from COPILOTKIT_TELEMETRY_DISABLED/DO_NOT_TRACK env vars
- Mirror through AgentRegistry and expose via CopilotKitCore getter
- Guard track calls, URL param appending, and console disclosure on core.telemetryDisabled
- Move maybeShowDisclosure() to onRuntimeConnectionStatusChanged (fires after core attaches)
- Update docs to replace localStorage toggle description with env var approach
- Add telemetryDisabled test suite to get-runtime-info tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/snippets/shared/telemetry/anonymous.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ In CopilotRuntime, simply set `COPILOTKIT_TELEMETRY_DISABLED=true`. We also resp
15
15
16
16
Alternatively, you can directly set the `telemetryDisabled` flag to `true` when configuring your Copilot Runtime endpoint.
17
17
18
-
In the **Inspector** dev-console, open the **Privacy** tab and toggle off **Send anonymous usage data**. The setting is stored in your browser's localStorage and short-circuits all sends from the inspector.
18
+
For the **Inspector** dev-console, set `COPILOTKIT_TELEMETRY_DISABLED=true` in your project's environment variables. The inspector reads this setting from the runtime at startup and suppresses all anonymous interaction events.
19
19
20
20
## How to adjust telemetry sample rate
21
21
@@ -35,7 +35,7 @@ Every event also carries a `distinct_id` (a UUID v4 generated on first inspector
35
35
36
36
When the inspector renders a banner CTA link, it appends the same anonymous `distinct_id` to outbound URLs as a `posthog_distinct_id` query parameter. This lets the destination site (typically `copilotkit.ai`) bridge the visit back to the inspector session for funnel correlation, without storing any cookie or identifier from the host page. The URL parameter is suppressed when you opt out.
37
37
38
-
The inspector telemetry pipeline never sends message content, agent state, prompts, completions, banner markdown text, or any payload you inspect. The opt-out toggle covers all anonymous interaction telemetry, including any future signup attribution.
38
+
The inspector telemetry pipeline never sends message content, agent state, prompts, completions, banner markdown text, or any payload you inspect. Setting `COPILOTKIT_TELEMETRY_DISABLED=true` suppresses all anonymous interaction telemetry from the inspector, including any future signup attribution.
? "You have disabled anonymous interaction data collection."
5686
+
: "CopilotKit is currently collecting anonymous interaction data from the inspector so we know which features people use. We never collect message content, agent state, prompts, or completions."}
0 commit comments