20 references to TelemetryConstants
Microsoft.Extensions.AI.Evaluation.Console (20)
Commands\CleanCacheCommand.cs (1)
16
using static Microsoft.Extensions.AI.Evaluation.Console.Telemetry.
TelemetryConstants
;
Commands\CleanResultsCommand.cs (1)
16
using static Microsoft.Extensions.AI.Evaluation.Console.Telemetry.
TelemetryConstants
;
Commands\ReportCommand.cs (1)
21
using static Microsoft.Extensions.AI.Evaluation.Console.Telemetry.
TelemetryConstants
;
Telemetry\TelemetryExtensions.cs (7)
17
value ?
TelemetryConstants
.PropertyValues.True :
TelemetryConstants
.PropertyValues.False;
169
properties.Add(
TelemetryConstants
.PropertyNames.Success,
TelemetryConstants
.PropertyValues.True);
170
properties.Add(
TelemetryConstants
.PropertyNames.DurationInMilliseconds, durationInMilliseconds);
204
properties.Add(
TelemetryConstants
.PropertyNames.Success,
TelemetryConstants
.PropertyValues.False);
Telemetry\TelemetryHelper.cs (10)
31
if (!
TelemetryConstants
.IsTelemetryEnabled)
40
_telemetryConfiguration.ConnectionString =
TelemetryConstants
.ConnectionString;
50
[
TelemetryConstants
.PropertyNames.DevDeviceId] = deviceId,
51
[
TelemetryConstants
.PropertyNames.OSVersion] = Environment.OSVersion.VersionString,
52
[
TelemetryConstants
.PropertyNames.OSPlatform] = Environment.OSVersion.Platform.ToString(),
53
[
TelemetryConstants
.PropertyNames.KernelVersion] = RuntimeInformation.OSDescription,
54
[
TelemetryConstants
.PropertyNames.RuntimeId] = RuntimeInformation.RuntimeIdentifier,
55
[
TelemetryConstants
.PropertyNames.ProductVersion] = Constants.Version,
56
[
TelemetryConstants
.PropertyNames.IsCIEnvironment] = isCIEnvironment
110
$"{
TelemetryConstants
.EventNamespace}/{eventName}",