Browse Source

Add new properties for solution, device, and project info tracking in telemetry

pull/23059/head
Emre KARA 1 year ago
parent
commit
a2e483faae
  1. 1
      framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Activity/Providers/TelemetryApplicationInfoEnricher.cs
  2. 1
      framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Activity/Providers/TelemetryDeviceInfoEnricher.cs
  3. 2
      framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Activity/Providers/TelemetrySolutionInfoEnricher.cs
  4. 4
      framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Constants/ActivityPropertyNames.cs

1
framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Activity/Providers/TelemetryApplicationInfoEnricher.cs

@ -48,6 +48,7 @@ public class TelemetryApplicationInfoEnricher : ITelemetryActivityDataEnricher,
}
activity.Remove(ActivityPropertyNames.Assembly);
activity[ActivityPropertyNames.HasProjectInfo] = true;
await _telemetryActivityStorage.MarkApplicationInfoAsAddedAsync(projectId.Value);
}
catch

1
framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Activity/Providers/TelemetryDeviceInfoEnricher.cs

@ -44,6 +44,7 @@ public class TelemetryDeviceInfoEnricher : ITelemetryActivityDataEnricher, ISing
EnrichWithDeviceInfo(activity);
await EnrichWithSoftwareInfoAsync(activity);
activity[ActivityPropertyNames.HasDeviceInfo] = true;
await _telemetryActivityStorage.MarkDeviceInfoAsAddedAsync();
}

2
framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Activity/Providers/TelemetrySolutionInfoEnricher.cs

@ -34,7 +34,7 @@ public class TelemetrySolutionInfoEnricher : ITelemetryActivityDataEnricher, ISi
await FillSolutionInfoAsync(activity);
await _telemetryActivityStorage.MarkSolutionInfoAsAddedAsync(solutionId.Value);
}
activity[ActivityPropertyNames.HasSolutionInfo] = true;
activity.Remove(ActivityPropertyNames.SolutionPath);
}
}

4
framework/src/Volo.Abp.Core/Volo/Abp/Telemetry/Constants/ActivityPropertyNames.cs

@ -69,4 +69,8 @@ public static class ActivityPropertyNames
public const string ModuleVersion = nameof(ModuleVersion);
public const string ModuleInstallationTime = nameof(ModuleInstallationTime);
public const string ExtraProperties = nameof(ExtraProperties);
public const string HasSolutionInfo = nameof(HasSolutionInfo);
public const string HasDeviceInfo = nameof(HasDeviceInfo);
public const string HasProjectInfo = nameof(HasProjectInfo);
}
Loading…
Cancel
Save