-
Notifications
You must be signed in to change notification settings - Fork 407
Expand file tree
/
Copy pathCloudfoundryAttributes.cs
More file actions
141 lines (126 loc) · 6.1 KB
/
Copy pathCloudfoundryAttributes.cs
File metadata and controls
141 lines (126 loc) · 6.1 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// <auto-generated>This file has been auto generated from 'src\OpenTelemetry.SemanticConventions\scripts\templates\registry\SemanticConventionsAttributes.cs.j2' </auto-generated>
#nullable enable
#pragma warning disable CS1570 // XML comment has badly formed XML
namespace OpenTelemetry.SemanticConventions;
/// <summary>
/// Constants for semantic attribute names outlined by the OpenTelemetry specifications.
/// </summary>
public static class CloudfoundryAttributes
{
/// <summary>
/// The guid of the application.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.application_id</c>. This is the same value as
/// reported by <c>cf app <app-name> --guid</c>.
/// </remarks>
public const string AttributeCloudfoundryAppId = "cloudfoundry.app.id";
/// <summary>
/// The index of the application instance. 0 when just one instance is active.
/// </summary>
/// <remarks>
/// CloudFoundry defines the <c>instance_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>.
/// It is used for logs and metrics emitted by CloudFoundry. It is
/// supposed to contain the application instance index for applications
/// deployed on the runtime.
/// <p>
/// Application instrumentation should use the value from environment
/// variable <c>CF_INSTANCE_INDEX</c>.
/// </remarks>
public const string AttributeCloudfoundryAppInstanceId = "cloudfoundry.app.instance.id";
/// <summary>
/// The name of the application.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.application_name</c>. This is the same value
/// as reported by <c>cf apps</c>.
/// </remarks>
public const string AttributeCloudfoundryAppName = "cloudfoundry.app.name";
/// <summary>
/// The guid of the CloudFoundry org the application is running in.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.org_id</c>. This is the same value as
/// reported by <c>cf org <org-name> --guid</c>.
/// </remarks>
public const string AttributeCloudfoundryOrgId = "cloudfoundry.org.id";
/// <summary>
/// The name of the CloudFoundry organization the app is running in.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.org_name</c>. This is the same value as
/// reported by <c>cf orgs</c>.
/// </remarks>
public const string AttributeCloudfoundryOrgName = "cloudfoundry.org.name";
/// <summary>
/// The UID identifying the process.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.process_id</c>. It is supposed to be equal to
/// <c>VCAP_APPLICATION.app_id</c> for applications deployed to the runtime.
/// For system components, this could be the actual PID.
/// </remarks>
public const string AttributeCloudfoundryProcessId = "cloudfoundry.process.id";
/// <summary>
/// The type of process.
/// </summary>
/// <remarks>
/// CloudFoundry applications can consist of multiple jobs. Usually the
/// main process will be of type <c>web</c>. There can be additional background
/// tasks or side-cars with different process types.
/// </remarks>
public const string AttributeCloudfoundryProcessType = "cloudfoundry.process.type";
/// <summary>
/// The guid of the CloudFoundry space the application is running in.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.space_id</c>. This is the same value as
/// reported by <c>cf space <space-name> --guid</c>.
/// </remarks>
public const string AttributeCloudfoundrySpaceId = "cloudfoundry.space.id";
/// <summary>
/// The name of the CloudFoundry space the application is running in.
/// </summary>
/// <remarks>
/// Application instrumentation should use the value from environment
/// variable <c>VCAP_APPLICATION.space_name</c>. This is the same value as
/// reported by <c>cf spaces</c>.
/// </remarks>
public const string AttributeCloudfoundrySpaceName = "cloudfoundry.space.name";
/// <summary>
/// A guid or another name describing the event source.
/// </summary>
/// <remarks>
/// CloudFoundry defines the <c>source_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>.
/// It is used for logs and metrics emitted by CloudFoundry. It is
/// supposed to contain the component name, e.g. "gorouter", for
/// CloudFoundry components.
/// <p>
/// When system components are instrumented, values from the
/// <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a>
/// should be used. The <c>system.id</c> should be set to
/// <c>spec.deployment/spec.name</c>.
/// </remarks>
public const string AttributeCloudfoundrySystemId = "cloudfoundry.system.id";
/// <summary>
/// A guid describing the concrete instance of the event source.
/// </summary>
/// <remarks>
/// CloudFoundry defines the <c>instance_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>.
/// It is used for logs and metrics emitted by CloudFoundry. It is
/// supposed to contain the vm ID for CloudFoundry components.
/// <p>
/// When system components are instrumented, values from the
/// <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a>
/// should be used. The <c>system.instance.id</c> should be set to <c>spec.id</c>.
/// </remarks>
public const string AttributeCloudfoundrySystemInstanceId = "cloudfoundry.system.instance.id";
}