-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathConstants.cs
83 lines (71 loc) · 3.01 KB
/
Constants.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
namespace OpenTelemetry.AutoInstrumentation;
internal static class Constants
{
public static class DistributionAttributes
{
public const string TelemetryDistroNameAttributeName = "telemetry.distro.name";
public const string TelemetryDistroNameAttributeValue = "opentelemetry-dotnet-instrumentation";
public const string TelemetryDistroVersionAttributeName = "telemetry.distro.version";
}
public static class GrpcSpanAttributes
{
public const string AttributeGrpcRequestMetadataPrefix = "rpc.grpc.request.metadata";
public const string AttributeGrpcResponseMetadataPrefix = "rpc.grpc.response.metadata";
}
public static class HttpSpanAttributes
{
public const string AttributeHttpRequestHeaderPrefix = "http.request.header";
public const string AttributeHttpResponseHeaderPrefix = "http.response.header";
}
public static class ConfigurationValues
{
public const string None = "none";
/// <summary>
/// Default delimiter for textual representation of multi-valued settings.
/// </summary>
public const char Separator = ',';
/// <summary>a
/// Delimiter for textual representation of settings that may contain multiple
/// fully qualified .NET names, e.g.: assembly or type names, that already
/// use commas as separators.
/// </summary>
public const char DotNetQualifiedNameSeparator = ':';
public static class Exporters
{
public const string Otlp = "otlp";
public const string Prometheus = "prometheus";
public const string Zipkin = "zipkin";
public const string Console = "console";
}
public static class Propagators
{
public const string W3CTraceContext = "tracecontext";
public const string W3CBaggage = "baggage";
public const string B3Multi = "b3multi";
public const string B3Single = "b3";
}
public static class LogLevel
{
public const string Error = "error";
public const string Warning = "warn";
public const string Information = "info";
public const string Debug = "debug";
}
public static class Loggers
{
public const string File = "file";
public const string Console = "console";
}
}
public static class EnvironmentVariables
{
public const string ProfilerEnabledVariable = "CORECLR_ENABLE_PROFILING";
public const string ProfilerIdVariable = "CORECLR_PROFILER";
public const string ProfilerPathVariable = "CORECLR_PROFILER_PATH";
public const string Profiler32BitPathVariable = "CORECLR_PROFILER_PATH_32";
public const string Profiler64BitPathVariable = "CORECLR_PROFILER_PATH_64";
public const string ProfilerId = "{918728DD-259F-4A6A-AC2B-B85E1B658318}";
}
}