Skip to content

Commit d8c13db

Browse files
committed
Make conversation telemetry only available in dev builds for testing
1 parent a35e1ff commit d8c13db

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
- Add Account view to display billing and usage history for Cline account users. You can now keep track of credits used and transaction history right in the extension!
66
- Add 'Sort underling provider routing' setting to allow you to sort provider used by Cline/OpenRouter by throughput, price, latency, or the default (combination of price and uptime)
7-
- Add Advanced Setting to opt-in to LLM observability, allowing you to share message data, code, and more extensive telemetry to help improve prompts used in Cline, train our models, and understand failure states more accurately.
87
- Display total space Cline takes on disk next to "Delete all Tasks" button in History view
98
- Fix "Context Window Exceeded" error for OpenRouter/Cline Accounts (additional support coming soon)
109
- Improve rich MCP display with dynamic image loading and support for GIFs

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,6 @@
221221
"type": "boolean",
222222
"default": true,
223223
"description": "Controls whether the MCP Marketplace is enabled."
224-
},
225-
"cline.conversationTelemetry": {
226-
"type": "boolean",
227-
"default": false,
228-
"markdownDescription": "Share message data, code, and more extensive telemetry. This data may be used to improve prompts used in Cline, train models, and understand failure states more accurately. [Learn more](https://docs.cline.bot/more-info/llm-observability)"
229224
}
230225
}
231226
}

src/services/telemetry/ConversationTelemetryService.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,20 @@ interface ConversationMetadata {
2121
tokensOut: number
2222
}
2323

24+
const { IS_DEV } = process.env
25+
2426
/**
25-
* Service for collecting conversation data using OpenTelemetry
27+
Cline Telemetry (currently only available in DEV builds)
28+
29+
Advanced Setting to opt-in to LLM observability, allowing you to share message data, code, and more extensive telemetry to help improve prompts used in Cline, train our models, and understand failure states more accurately.
30+
31+
"cline.conversationTelemetry": {
32+
"type": "boolean",
33+
"default": false,
34+
"markdownDescription": "Share message data, code, and more extensive telemetry. This data may be used to improve prompts used in Cline, train models, and understand failure states more accurately. [Learn more](https://docs.cline.bot/more-info/llm-observability)"
35+
}
2636
*/
37+
2738
export class ConversationTelemetryService {
2839
private providerRef: WeakRef<ClineProvider>
2940
private distinctId: string = vscode.env.machineId
@@ -55,7 +66,10 @@ export class ConversationTelemetryService {
5566
const isConversationTelemetryEnabled =
5667
vscode.workspace.getConfiguration("cline").get<boolean>("conversationTelemetry") ?? false
5768

58-
return isGlobalTelemetryEnabled && isConversationTelemetryEnabled
69+
// Currently only enabled in dev environment
70+
const isDevEnvironment = !!IS_DEV
71+
72+
return isDevEnvironment && isGlobalTelemetryEnabled && isConversationTelemetryEnabled
5973
}
6074

6175
private async initializeTracer() {

0 commit comments

Comments
 (0)