Browse Source

Add OldCli flag to telemetry session context

Introduces a new 'OldCli' property set to true in the telemetry session context to help identify sessions initiated by the old CLI.
pull/24395/head
SALİH ÖZKARA 10 months ago
parent
commit
ac29577569
  1. 1
      framework/src/Volo.Abp.Cli/Volo/Abp/Cli/Telemetry/TelemetryCliSessionProvider.cs

1
framework/src/Volo.Abp.Cli/Volo/Abp/Cli/Telemetry/TelemetryCliSessionProvider.cs

@ -24,6 +24,7 @@ public class TelemetryCliSessionProvider : TelemetryActivityEventEnricher
context.Current[ActivityPropertyNames.SessionType] = SessionType.AbpCli;
context.Current[ActivityPropertyNames.SessionId] = Guid.NewGuid();
context.Current[ActivityPropertyNames.IsFirstSession] = !File.Exists(TelemetryPaths.ActivityStorage);
context.Current["OldCli"] = true;
return Task.CompletedTask;
}

Loading…
Cancel
Save