Browse Source
Merge pull request #23881 from abpframework/auto-merge/rel-9-3/4018
Merge branch rel-10.0 with rel-9.3
pull/23882/head
Ma Liming
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
11 additions and
0 deletions
-
framework/src/Volo.Abp.Core/Volo/Abp/Internal/Telemetry/Activity/Providers/TelemetrySolutionInfoEnricher.cs
|
|
|
@ -41,6 +41,11 @@ internal sealed class TelemetrySolutionInfoEnricher : TelemetryActivityEventEnri |
|
|
|
|
|
|
|
var root = doc.RootElement; |
|
|
|
|
|
|
|
if (root.TryGetProperty("versions", out var versions)) |
|
|
|
{ |
|
|
|
AddVersions(context, versions); |
|
|
|
} |
|
|
|
|
|
|
|
if (root.TryGetProperty("creatingStudioConfiguration", out var creatingStudioConfiguration)) |
|
|
|
{ |
|
|
|
AddSolutionCreationConfiguration(context, creatingStudioConfiguration); |
|
|
|
@ -61,6 +66,12 @@ internal sealed class TelemetrySolutionInfoEnricher : TelemetryActivityEventEnri |
|
|
|
return Task.CompletedTask; |
|
|
|
} |
|
|
|
|
|
|
|
private static void AddVersions(ActivityContext context, JsonElement config) |
|
|
|
{ |
|
|
|
context.Current[ActivityPropertyNames.FirstAbpVersion] = TelemetryJsonExtensions.GetStringOrNull(config, "AbpFramework"); |
|
|
|
context.Current[ActivityPropertyNames.FirstDotnetVersion] = TelemetryJsonExtensions.GetStringOrNull(config, "TargetDotnetFramework"); |
|
|
|
} |
|
|
|
|
|
|
|
private static void AddSolutionCreationConfiguration(ActivityContext context, JsonElement config) |
|
|
|
{ |
|
|
|
context.Current[ActivityPropertyNames.Template] = TelemetryJsonExtensions.GetStringOrNull(config, "template"); |
|
|
|
|