Merge pull request #78 from continuedev/nate/otel
Remove unused file operations and terminal commands telemetry counters
This commit is contained in:
commit
003a9f1502
1 changed files with 8 additions and 20 deletions
|
|
@ -46,8 +46,6 @@ class TelemetryService {
|
|||
private codeEditDecisionCounter: any = null;
|
||||
private activeTimeCounter: any = null;
|
||||
private authAttemptsCounter: any = null;
|
||||
private fileOperationsCounter: any = null;
|
||||
private terminalCommandsCounter: any = null;
|
||||
private mcpConnectionsGauge: any = null;
|
||||
private startupTimeHistogram: any = null;
|
||||
private responseTimeHistogram: any = null;
|
||||
|
|
@ -60,7 +58,13 @@ class TelemetryService {
|
|||
}
|
||||
|
||||
private loadConfig(): TelemetryConfig {
|
||||
const enabled = process.env.CONTINUE_CLI_ENABLE_TELEMETRY === "1";
|
||||
const hasOtelConfig = !!(
|
||||
process.env.OTEL_EXPORTER_OTLP_ENDPOINT ||
|
||||
process.env.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT ||
|
||||
process.env.OTEL_METRICS_EXPORTER
|
||||
);
|
||||
const enabled =
|
||||
process.env.CONTINUE_CLI_ENABLE_TELEMETRY !== "0" && hasOtelConfig;
|
||||
const sessionId = uuidv4();
|
||||
|
||||
return {
|
||||
|
|
@ -228,22 +232,6 @@ class TelemetryService {
|
|||
}
|
||||
);
|
||||
|
||||
this.fileOperationsCounter = this.meter.createCounter(
|
||||
"continue.cli.tools.file_operations",
|
||||
{
|
||||
description: "File operations performed",
|
||||
unit: "{operation}",
|
||||
}
|
||||
);
|
||||
|
||||
this.terminalCommandsCounter = this.meter.createCounter(
|
||||
"continue.cli.tools.terminal_commands",
|
||||
{
|
||||
description: "Terminal commands executed",
|
||||
unit: "{command}",
|
||||
}
|
||||
);
|
||||
|
||||
this.mcpConnectionsGauge = this.meter.createObservableGauge(
|
||||
"continue.cli.mcp.connections",
|
||||
{
|
||||
|
|
@ -557,4 +545,4 @@ class TelemetryService {
|
|||
|
||||
// Export the singleton instance directly
|
||||
export const telemetryService = new TelemetryService();
|
||||
export default telemetryService;
|
||||
export default telemetryService;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue