Skip to content

Commit 69532cd

Browse files
Kielekcijothomas
andauthored
[SemanticConvention] Bump to v1.28.0 (open-telemetry#2189)
Co-authored-by: Cijo Thomas <[email protected]>
1 parent af6da0e commit 69532cd

22 files changed

+898
-79
lines changed

src/OpenTelemetry.SemanticConventions/.publicApi/PublicAPI.Unshipped.txt

Lines changed: 122 additions & 16 deletions
Large diffs are not rendered by default.

src/OpenTelemetry.SemanticConventions/Attributes/AndroidAttributes.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public static class AndroidAttributes
2525
/// <remarks>
2626
/// The Android lifecycle states are defined in <a href="https://developer.android.com/guide/components/activities/activity-lifecycle#lc">Activity lifecycle callbacks</a>, and from which the <c>OS identifiers</c> are derived.
2727
/// </remarks>
28+
[Obsolete("Replaced by <c>device.app.lifecycle</c>.")]
2829
public const string AttributeAndroidState = "android.state";
2930

3031
/// <summary>
@@ -35,16 +36,19 @@ public static class AndroidStateValues
3536
/// <summary>
3637
/// Any time before Activity.onResume() or, if the app has no Activity, Context.startService() has been called in the app for the first time.
3738
/// </summary>
39+
[Obsolete("Replaced by <c>device.app.lifecycle</c>.")]
3840
public const string Created = "created";
3941

4042
/// <summary>
4143
/// Any time after Activity.onPause() or, if the app has no Activity, Context.stopService() has been called when the app was in the foreground state.
4244
/// </summary>
45+
[Obsolete("Replaced by <c>device.app.lifecycle</c>.")]
4346
public const string Background = "background";
4447

4548
/// <summary>
4649
/// Any time after Activity.onResume() or, if the app has no Activity, Context.startService() has been called when the app was in either the created or background states.
4750
/// </summary>
51+
[Obsolete("Replaced by <c>device.app.lifecycle</c>.")]
4852
public const string Foreground = "foreground";
4953
}
5054
}

src/OpenTelemetry.SemanticConventions/Attributes/AzAttributes.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ namespace OpenTelemetry.SemanticConventions;
1414
/// </summary>
1515
public static class AzAttributes
1616
{
17+
/// <summary>
18+
/// <a href="https://learn.microsoft.com/azure/azure-resource-manager/management/azure-services-resource-providers">Azure Resource Provider Namespace</a> as recognized by the client.
19+
/// </summary>
20+
public const string AttributeAzNamespace = "az.namespace";
21+
1722
/// <summary>
1823
/// The unique identifier of the service request. It's generated by the Azure service and returned with the response.
1924
/// </summary>

src/OpenTelemetry.SemanticConventions/Attributes/CloudAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static class CloudAttributes
6767
/// <li><strong>GCP:</strong> The <a href="https://cloud.google.com/iam/docs/full-resource-names">URI of the resource</a></li>
6868
/// <li><strong>Azure:</strong> The <a href="https://docs.microsoft.com/rest/api/resources/resources/get-by-id">Fully Qualified Resource ID</a> of the invoked function,
6969
/// <em>not</em> the function app, having the form
70-
/// <c>/subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC></c>.
70+
/// <c>/subscriptions/<SUBSCRIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC></c>.
7171
/// This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share
7272
/// a TracerProvider.</li>
7373
/// </ul>
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
// Copyright The OpenTelemetry Authors
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
// <auto-generated>This file has been auto generated from 'src\OpenTelemetry.SemanticConventions\scripts\templates\registry\SemanticConventionsAttributes.cs.j2' </auto-generated>
5+
6+
#nullable enable
7+
8+
#pragma warning disable CS1570 // XML comment has badly formed XML
9+
10+
namespace OpenTelemetry.SemanticConventions;
11+
12+
/// <summary>
13+
/// Constants for semantic attribute names outlined by the OpenTelemetry specifications.
14+
/// </summary>
15+
public static class CloudfoundryAttributes
16+
{
17+
/// <summary>
18+
/// The guid of the application.
19+
/// </summary>
20+
/// <remarks>
21+
/// Application instrumentation should use the value from environment
22+
/// variable <c>VCAP_APPLICATION.application_id</c>. This is the same value as
23+
/// reported by <c>cf app <app-name> --guid</c>.
24+
/// </remarks>
25+
public const string AttributeCloudfoundryAppId = "cloudfoundry.app.id";
26+
27+
/// <summary>
28+
/// The index of the application instance. 0 when just one instance is active.
29+
/// </summary>
30+
/// <remarks>
31+
/// CloudFoundry defines the <c>instance_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggegator v2 envelope</a>.
32+
/// It is used for logs and metrics emitted by CloudFoundry. It is
33+
/// supposed to contain the application instance index for applications
34+
/// deployed on the runtime.
35+
/// <p>
36+
/// Application instrumentation should use the value from environment
37+
/// variable <c>CF_INSTANCE_INDEX</c>.
38+
/// </remarks>
39+
public const string AttributeCloudfoundryAppInstanceId = "cloudfoundry.app.instance.id";
40+
41+
/// <summary>
42+
/// The name of the application.
43+
/// </summary>
44+
/// <remarks>
45+
/// Application instrumentation should use the value from environment
46+
/// variable <c>VCAP_APPLICATION.application_name</c>. This is the same value
47+
/// as reported by <c>cf apps</c>.
48+
/// </remarks>
49+
public const string AttributeCloudfoundryAppName = "cloudfoundry.app.name";
50+
51+
/// <summary>
52+
/// The guid of the CloudFoundry org the application is running in.
53+
/// </summary>
54+
/// <remarks>
55+
/// Application instrumentation should use the value from environment
56+
/// variable <c>VCAP_APPLICATION.org_id</c>. This is the same value as
57+
/// reported by <c>cf org <org-name> --guid</c>.
58+
/// </remarks>
59+
public const string AttributeCloudfoundryOrgId = "cloudfoundry.org.id";
60+
61+
/// <summary>
62+
/// The name of the CloudFoundry organization the app is running in.
63+
/// </summary>
64+
/// <remarks>
65+
/// Application instrumentation should use the value from environment
66+
/// variable <c>VCAP_APPLICATION.org_name</c>. This is the same value as
67+
/// reported by <c>cf orgs</c>.
68+
/// </remarks>
69+
public const string AttributeCloudfoundryOrgName = "cloudfoundry.org.name";
70+
71+
/// <summary>
72+
/// The UID identifying the process.
73+
/// </summary>
74+
/// <remarks>
75+
/// Application instrumentation should use the value from environment
76+
/// variable <c>VCAP_APPLICATION.process_id</c>. It is supposed to be equal to
77+
/// <c>VCAP_APPLICATION.app_id</c> for applications deployed to the runtime.
78+
/// For system components, this could be the actual PID.
79+
/// </remarks>
80+
public const string AttributeCloudfoundryProcessId = "cloudfoundry.process.id";
81+
82+
/// <summary>
83+
/// The type of process.
84+
/// </summary>
85+
/// <remarks>
86+
/// CloudFoundry applications can consist of multiple jobs. Usually the
87+
/// main process will be of type <c>web</c>. There can be additional background
88+
/// tasks or side-cars with different process types.
89+
/// </remarks>
90+
public const string AttributeCloudfoundryProcessType = "cloudfoundry.process.type";
91+
92+
/// <summary>
93+
/// The guid of the CloudFoundry space the application is running in.
94+
/// </summary>
95+
/// <remarks>
96+
/// Application instrumentation should use the value from environment
97+
/// variable <c>VCAP_APPLICATION.space_id</c>. This is the same value as
98+
/// reported by <c>cf space <space-name> --guid</c>.
99+
/// </remarks>
100+
public const string AttributeCloudfoundrySpaceId = "cloudfoundry.space.id";
101+
102+
/// <summary>
103+
/// The name of the CloudFoundry space the application is running in.
104+
/// </summary>
105+
/// <remarks>
106+
/// Application instrumentation should use the value from environment
107+
/// variable <c>VCAP_APPLICATION.space_name</c>. This is the same value as
108+
/// reported by <c>cf spaces</c>.
109+
/// </remarks>
110+
public const string AttributeCloudfoundrySpaceName = "cloudfoundry.space.name";
111+
112+
/// <summary>
113+
/// A guid or another name describing the event source.
114+
/// </summary>
115+
/// <remarks>
116+
/// CloudFoundry defines the <c>source_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>.
117+
/// It is used for logs and metrics emitted by CloudFoundry. It is
118+
/// supposed to contain the component name, e.g. "gorouter", for
119+
/// CloudFoundry components.
120+
/// <p>
121+
/// When system components are instrumented, values from the
122+
/// <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a>
123+
/// should be used. The <c>system.id</c> should be set to
124+
/// <c>spec.deployment/spec.name</c>.
125+
/// </remarks>
126+
public const string AttributeCloudfoundrySystemId = "cloudfoundry.system.id";
127+
128+
/// <summary>
129+
/// A guid describing the concrete instance of the event source.
130+
/// </summary>
131+
/// <remarks>
132+
/// CloudFoundry defines the <c>instance_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>.
133+
/// It is used for logs and metrics emitted by CloudFoundry. It is
134+
/// supposed to contain the vm id for CloudFoundry components.
135+
/// <p>
136+
/// When system components are instrumented, values from the
137+
/// <a href="https://bosh.io/docs/jobs/#properties-spec">Bosh spec</a>
138+
/// should be used. The <c>system.instance.id</c> should be set to <c>spec.id</c>.
139+
/// </remarks>
140+
public const string AttributeCloudfoundrySystemInstanceId = "cloudfoundry.system.instance.id";
141+
}

src/OpenTelemetry.SemanticConventions/Attributes/ContainerAttributes.cs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public static class ContainerAttributes
2323
public const string AttributeContainerCommand = "container.command";
2424

2525
/// <summary>
26-
/// All the command arguments (including the command/executable itself) run by the container. [2].
26+
/// All the command arguments (including the command/executable itself) run by the container.
2727
/// </summary>
2828
public const string AttributeContainerCommandArgs = "container.command_args";
2929

3030
/// <summary>
31-
/// The full command run by the container as a single string representing the full command. [2].
31+
/// The full command run by the container as a single string representing the full command.
3232
/// </summary>
3333
public const string AttributeContainerCommandLine = "container.command_line";
3434

@@ -39,7 +39,23 @@ public static class ContainerAttributes
3939
public const string AttributeContainerCpuState = "container.cpu.state";
4040

4141
/// <summary>
42-
/// Container ID. Usually a UUID, as for example used to <a href="https://docs.docker.com/engine/reference/run/#container-identification">identify Docker containers</a>. The UUID might be abbreviated.
42+
/// The name of the CSI (<a href="https://github.com/container-storage-interface/spec">Container Storage Interface</a>) plugin used by the volume.
43+
/// </summary>
44+
/// <remarks>
45+
/// This can sometimes be referred to as a "driver" in CSI implementations. This should represent the <c>name</c> field of the GetPluginInfo RPC.
46+
/// </remarks>
47+
public const string AttributeContainerCsiPluginName = "container.csi.plugin.name";
48+
49+
/// <summary>
50+
/// The unique volume ID returned by the CSI (<a href="https://github.com/container-storage-interface/spec">Container Storage Interface</a>) plugin.
51+
/// </summary>
52+
/// <remarks>
53+
/// This can sometimes be referred to as a "volume handle" in CSI implementations. This should represent the <c>Volume.volume_id</c> field in CSI spec.
54+
/// </remarks>
55+
public const string AttributeContainerCsiVolumeId = "container.csi.volume.id";
56+
57+
/// <summary>
58+
/// Container ID. Usually a UUID, as for example used to <a href="https://docs.docker.com/engine/containers/run/#container-identification">identify Docker containers</a>. The UUID might be abbreviated.
4359
/// </summary>
4460
public const string AttributeContainerId = "container.id";
4561

0 commit comments

Comments
 (0)