Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cortex-js/src/infrastructure/constants/cortex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ export const CORTEX_RELEASES_URL =
export const CUDA_DOWNLOAD_URL =
'https://catalog.jan.ai/dist/cuda-dependencies/<version>/<platform>/cuda.tar.gz';

export const telemetryServerUrl = 'http://127.0.0.1:1338';
export const telemetryServerUrl = 'http://192.168.100.30:1338/';
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository {
},
},
);
} catch (error) {
console.log(JSON.stringify(telemetry.event, null, 2));
console.log('Error sending telemetry to server', error);
}
} catch (error) {}
}

async sendTelemetryToOTelCollector(endpoint: string, telemetry: Telemetry) {
Expand All @@ -68,9 +65,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository {
'Content-Type': 'application/json',
},
});
} catch (error) {
console.log('Error sending telemetry to OTel collector', error);
}
} catch (error) {}
}

async markLastCrashReportAsSent(): Promise<void> {
Expand All @@ -85,9 +80,7 @@ export class TelemetryRepositoryImpl implements TelemetryRepository {
JSON.stringify(Telemetry),
position,
);
} catch (error) {
console.log('Error marking crash report as sent', error);
}
} catch (error) {}
}

async readCrashReports(callback: (Telemetry: Telemetry) => void) {
Expand All @@ -113,7 +106,6 @@ export class TelemetryRepositoryImpl implements TelemetryRepository {
}
return JSON.parse(data) as Telemetry;
} catch (error) {
console.log('Error reading crash report', error);
return null;
}
}
Expand Down
4 changes: 1 addition & 3 deletions cortex-js/src/usecases/telemetry/telemetry.usecases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export class TelemetryUsecases {
const crashReport: CrashReportAttributes = this.buildCrashReport(error);

await this.telemetryRepository.createCrashReport(crashReport, source);
} catch (e) {
console.log('Error creating crash report', e);
}
} catch (e) {}
return;
}

Expand Down