-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathTelemetryConstants.cs
53 lines (44 loc) · 1.81 KB
/
TelemetryConstants.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
47
48
49
50
51
52
53
namespace OpenFeature.Telemetry;
/// <summary>
/// The attributes of an OpenTelemetry compliant event for flag evaluation.
/// <see href="https://opentelemetry.io/docs/specs/semconv/feature-flags/feature-flags-logs/"/>
/// </summary>
public static class TelemetryConstants
{
/// <summary>
/// The lookup key of the feature flag.
/// </summary>
public const string Key = "feature_flag.key";
/// <summary>
/// Describes a class of error the operation ended with.
/// </summary>
public const string ErrorCode = "error.type";
/// <summary>
/// A semantic identifier for an evaluated flag value.
/// </summary>
public const string Variant = "feature_flag.variant";
/// <summary>
/// The unique identifier for the flag evaluation context. For example, the targeting key.
/// </summary>
public const string ContextId = "feature_flag.context.id";
/// <summary>
/// A message explaining the nature of an error occurring during flag evaluation.
/// </summary>
public const string ErrorMessage = "feature_flag.evaluation.error.message";
/// <summary>
/// The reason code which shows how a feature flag value was determined.
/// </summary>
public const string Reason = "feature_flag.evaluation.reason";
/// <summary>
/// Describes a class of error the operation ended with.
/// </summary>
public const string Provider = "feature_flag.provider_name";
/// <summary>
/// The identifier of the flag set to which the feature flag belongs.
/// </summary>
public const string FlagSetId = "feature_flag.set.id";
/// <summary>
/// The version of the ruleset used during the evaluation. This may be any stable value which uniquely identifies the ruleset.
/// </summary>
public const string Version = "feature_flag.version";
}