14 references to ApplicationEnricherTags
Microsoft.Extensions.Telemetry (4)
Enrichment\ApplicationLogEnricher.cs (4)
40
l.Add(new(
ApplicationEnricherTags
.ApplicationName, applicationMetadata.ApplicationName));
45
l.Add(new(
ApplicationEnricherTags
.EnvironmentName, applicationMetadata.EnvironmentName));
50
l.Add(new(
ApplicationEnricherTags
.DeploymentRing, applicationMetadata.DeploymentRing));
55
l.Add(new(
ApplicationEnricherTags
.BuildVersion, applicationMetadata.BuildVersion));
Microsoft.Extensions.Telemetry.Tests (10)
Enrichment\ApplicationEnricherTagTests.cs (2)
16
var dimensions =
ApplicationEnricherTags
.DimensionNames;
18
string[] expectedDimensions = GetStringConstants(typeof(
ApplicationEnricherTags
));
Enrichment\ApplicationLogEnricherTests.cs (8)
84
Assert.Equal(AppName, enrichedState[
ApplicationEnricherTags
.ApplicationName]);
88
Assert.False(enrichedState.ContainsKey(
ApplicationEnricherTags
.ApplicationName));
93
Assert.Equal(EnvironmentName, enrichedState[
ApplicationEnricherTags
.EnvironmentName]);
97
Assert.False(enrichedState.ContainsKey(
ApplicationEnricherTags
.EnvironmentName));
102
Assert.Equal(BuildVersion, enrichedState[
ApplicationEnricherTags
.BuildVersion]);
106
Assert.False(enrichedState.ContainsKey(
ApplicationEnricherTags
.BuildVersion));
111
Assert.Equal(DeploymentRing, enrichedState[
ApplicationEnricherTags
.DeploymentRing]);
115
Assert.False(enrichedState.ContainsKey(
ApplicationEnricherTags
.DeploymentRing));