-
Notifications
You must be signed in to change notification settings - Fork 730
/
ApplicationEnricherTags.cs
46 lines (39 loc) · 1.24 KB
/
ApplicationEnricherTags.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
namespace Microsoft.Extensions.Diagnostics.Enrichment;
/// <summary>
/// Constants used for enrichment tags.
/// </summary>
public static class ApplicationEnricherTags
{
/// <summary>
/// Application name.
/// </summary>
public const string ApplicationName = "service.name";
/// <summary>
/// Environment name.
/// </summary>
public const string EnvironmentName = "deployment.environment";
/// <summary>
/// Deployment ring.
/// </summary>
public const string DeploymentRing = "DeploymentRing";
/// <summary>
/// Build version.
/// </summary>
public const string BuildVersion = "service.version";
/// <summary>
/// Gets a list of all dimension names.
/// </summary>
/// <returns>A read-only <see cref="IReadOnlyList{String}"/> of all dimension names.</returns>
public static IReadOnlyList<string> DimensionNames { get; } =
Array.AsReadOnly(new[]
{
ApplicationName,
EnvironmentName,
BuildVersion,
DeploymentRing
});
}