mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 18:48:45 -05:00
Tweaks telemetry a bit
This commit is contained in:
@@ -63,9 +63,8 @@ export async function activate(context: ExtensionContext) {
|
|||||||
Logger.log(`Git version: ${gitVersion}`);
|
Logger.log(`Git version: ${gitVersion}`);
|
||||||
|
|
||||||
const telemetryContext: { [id: string]: any } = Object.create(null);
|
const telemetryContext: { [id: string]: any } = Object.create(null);
|
||||||
telemetryContext.name = ExtensionId;
|
|
||||||
telemetryContext.version = gitlensVersion;
|
telemetryContext.version = gitlensVersion;
|
||||||
telemetryContext.git_version = gitVersion;
|
telemetryContext['git.version'] = gitVersion;
|
||||||
Telemetry.setContext(telemetryContext);
|
Telemetry.setContext(telemetryContext);
|
||||||
|
|
||||||
notifyOnUnsupportedGitVersion(context, gitVersion);
|
notifyOnUnsupportedGitVersion(context, gitVersion);
|
||||||
|
|||||||
@@ -41,13 +41,15 @@ export class TelemetryReporter extends Disposable {
|
|||||||
.setAutoCollectPerformance(false)
|
.setAutoCollectPerformance(false)
|
||||||
.setAutoCollectRequests(false);
|
.setAutoCollectRequests(false);
|
||||||
|
|
||||||
(appInsights as any).setAutoCollectDependencies(false)
|
(appInsights as any)
|
||||||
|
.setAutoCollectDependencies(false)
|
||||||
|
.setAutoDependencyCorrelation(false)
|
||||||
.setOfflineMode(true);
|
.setOfflineMode(true);
|
||||||
|
|
||||||
this._client = appInsights.start().client;
|
this._client = appInsights.start().client;
|
||||||
|
|
||||||
this.setContext();
|
this.setContext();
|
||||||
this._stripPII(appInsights.client);
|
this._stripPII(this._client);
|
||||||
|
|
||||||
this._onConfigurationChanged();
|
this._onConfigurationChanged();
|
||||||
|
|
||||||
@@ -67,12 +69,13 @@ export class TelemetryReporter extends Disposable {
|
|||||||
this._context = Object.create(null);
|
this._context = Object.create(null);
|
||||||
|
|
||||||
// Add vscode properties
|
// Add vscode properties
|
||||||
this._context.code_language = vscode.env.language;
|
this._context['code.language'] = vscode.env.language;
|
||||||
this._context.code_version = vscode.version;
|
this._context['code.version'] = vscode.version;
|
||||||
|
this._context[this._client.context.keys.sessionId] = vscode.env.sessionId;
|
||||||
|
|
||||||
// Add os properties
|
// Add os properties
|
||||||
this._context.os = os.platform();
|
this._context['os.platform'] = os.platform();
|
||||||
this._context.os_version = os.release();
|
this._context['os.version'] = os.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (context) {
|
if (context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user