Skip to content

Commit 9f1cdb1

Browse files
[SemanticConvention] Bump to 1.38.0 (#3365)
Co-authored-by: Martin Costello <[email protected]>
1 parent f24cc8b commit 9f1cdb1

27 files changed

+703
-55
lines changed

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

Lines changed: 85 additions & 1 deletion
Large diffs are not rendered by default.

src/OpenTelemetry.SemanticConventions/Attributes/AppAttributes.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ public static class AppAttributes
7272
/// </summary>
7373
public const string AttributeAppScreenCoordinateY = "app.screen.coordinate.y";
7474

75+
/// <summary>
76+
/// An identifier that uniquely differentiates this screen from other screens in the same application.
77+
/// </summary>
78+
/// <remarks>
79+
/// A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).
80+
/// </remarks>
81+
public const string AttributeAppScreenId = "app.screen.id";
82+
83+
/// <summary>
84+
/// The name of an application screen.
85+
/// </summary>
86+
/// <remarks>
87+
/// A screen represents only the part of the device display drawn by the app. It typically contains multiple widgets or UI components and is larger in scope than individual widgets. Multiple screens can coexist on the same display simultaneously (e.g., split view on tablets).
88+
/// </remarks>
89+
public const string AttributeAppScreenName = "app.screen.name";
90+
7591
/// <summary>
7692
/// An identifier that uniquely differentiates this widget from other widgets in the same application.
7793
/// </summary>

src/OpenTelemetry.SemanticConventions/Attributes/AzureAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static class AzureAttributes
3333
/// List of regions contacted during operation in the order that they were contacted. If there is more than one region listed, it indicates that the operation was performed on multiple regions i.e. cross-regional call.
3434
/// </summary>
3535
/// <remarks>
36-
/// Region name matches the format of <c>displayName</c> in <a href="https://learn.microsoft.com/rest/api/subscription/subscriptions/list-locations?view=rest-subscription-2021-10-01&tabs=HTTP#location">Azure Location API</a>.
36+
/// Region name matches the format of <c>displayName</c> in <a href="https://learn.microsoft.com/rest/api/resources/subscriptions/list-locations">Azure Location API</a>.
3737
/// </remarks>
3838
public const string AttributeAzureCosmosdbOperationContactedRegions = "azure.cosmosdb.operation.contacted_regions";
3939

src/OpenTelemetry.SemanticConventions/Attributes/ContainerAttributes.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static class ContainerAttributes
6363
/// Runtime specific image identifier. Usually a hash algorithm followed by a UUID.
6464
/// </summary>
6565
/// <remarks>
66-
/// Docker defines a sha256 of the image id; <c>container.image.id</c> corresponds to the <c>Image</c> field from the Docker container inspect <a href="https://docs.docker.com/engine/api/v1.43/#tag/Container/operation/ContainerInspect">API</a> endpoint.
66+
/// Docker defines a sha256 of the image id; <c>container.image.id</c> corresponds to the <c>Image</c> field from the Docker container inspect <a href="https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Container/operation/ContainerInspect">API</a> endpoint.
6767
/// K8s defines a link to the container registry repository with digest <c>"imageID": "registry.azurecr.io /namespace/service/dockerfile@sha256:bdeabd40c3a8a492eaf9e8e44d0ebbb84bac7ee25ac0cf8a7159d25f62555625"</c>.
6868
/// The ID is assigned by the container runtime and can vary in different environments. Consider using <c>oci.manifest.digest</c> if it is important to identify the same image in different environments/runtimes.
6969
/// </remarks>
@@ -78,12 +78,12 @@ public static class ContainerAttributes
7878
/// Repo digests of the container image as provided by the container runtime.
7979
/// </summary>
8080
/// <remarks>
81-
/// <a href="https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect">Docker</a> and <a href="https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238">CRI</a> report those under the <c>RepoDigests</c> field.
81+
/// <a href="https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Image/operation/ImageInspect">Docker</a> and <a href="https://github.com/kubernetes/cri-api/blob/c75ef5b473bbe2d0a4fc92f82235efd665ea8e9f/pkg/apis/runtime/v1/api.proto#L1237-L1238">CRI</a> report those under the <c>RepoDigests</c> field.
8282
/// </remarks>
8383
public const string AttributeContainerImageRepoDigests = "container.image.repo_digests";
8484

8585
/// <summary>
86-
/// Container image tags. An example can be found in <a href="https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageInspect">Docker Image Inspect</a>. Should be only the <c><tag></c> section of the full name for example from <c>registry.example.com/my-org/my-image:<tag></c>.
86+
/// Container image tags. An example can be found in <a href="https://docs.docker.com/reference/api/engine/version/v1.43/#tag/Image/operation/ImageInspect">Docker Image Inspect</a>. Should be only the <c><tag></c> section of the full name for example from <c>registry.example.com/my-org/my-image:<tag></c>.
8787
/// </summary>
8888
public const string AttributeContainerImageTags = "container.image.tags";
8989

src/OpenTelemetry.SemanticConventions/Attributes/DbAttributes.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public static class DbAttributes
151151
/// <summary>
152152
/// Deprecated, use <c>db.response.status_code</c> instead.
153153
/// </summary>
154-
[Obsolete("Replaced by <c>db.response.status_code</c>.")]
154+
[Obsolete("Use <c>db.response.status_code</c> instead.")]
155155
public const string AttributeDbCosmosdbStatusCode = "db.cosmosdb.status_code";
156156

157157
/// <summary>
@@ -275,14 +275,17 @@ public static class DbAttributes
275275
/// <c>db.query.parameter.<key></c> SHOULD match
276276
/// up with the parameterized placeholders present in <c>db.query.text</c>.
277277
/// <p>
278+
/// It is RECOMMENDED to capture the value as provided by the application
279+
/// without attempting to do any case normalization.
280+
/// <p>
278281
/// <c>db.query.parameter.<key></c> SHOULD NOT be captured on batch operations.
279282
/// <p>
280283
/// Examples:
281284
/// <ul>
282285
/// <li>For a query <c>SELECT * FROM users where username = %s</c> with the parameter <c>"jdoe"</c>,
283286
/// the attribute <c>db.query.parameter.0</c> SHOULD be set to <c>"jdoe"</c>.</li>
284-
/// <li>For a query <c>"SELECT * FROM users WHERE username = %(username)s;</c> with parameter
285-
/// <c>username = "jdoe"</c>, the attribute <c>db.query.parameter.username</c> SHOULD be set to <c>"jdoe"</c>.</li>
287+
/// <li>For a query <c>"SELECT * FROM users WHERE username = %(userName)s;</c> with parameter
288+
/// <c>userName = "jdoe"</c>, the attribute <c>db.query.parameter.userName</c> SHOULD be set to <c>"jdoe"</c>.</li>
286289
/// </ul>
287290
/// </remarks>
288291
public const string AttributeDbQueryParameterTemplate = "db.query.parameter";
@@ -316,7 +319,7 @@ public static class DbAttributes
316319
/// <summary>
317320
/// Deprecated, use <c>db.namespace</c> instead.
318321
/// </summary>
319-
[Obsolete("Replaced by <c>db.namespace</c>.")]
322+
[Obsolete("Uncategorized.")]
320323
public const string AttributeDbRedisDatabaseIndex = "db.redis.database_index";
321324

322325
/// <summary>

src/OpenTelemetry.SemanticConventions/Attributes/DnsAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class DnsAttributes
2323
/// The name being queried.
2424
/// </summary>
2525
/// <remarks>
26-
/// If the name field contains non-printable characters (below 32 or above 126), those characters should be represented as escaped base 10 integers (\DDD). Back slashes and quotes should be escaped. Tabs, carriage returns, and line feeds should be converted to \t, \r, and \n respectively.
26+
/// The name represents the queried domain name as it appears in the DNS query without any additional normalization.
2727
/// </remarks>
2828
public const string AttributeDnsQuestionName = "dns.question.name";
2929
}

src/OpenTelemetry.SemanticConventions/Attributes/EnduserAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static class EnduserAttributes
3939
/// <summary>
4040
/// Deprecated, use <c>user.roles</c> instead.
4141
/// </summary>
42-
[Obsolete("Replaced by <c>user.roles</c>.")]
42+
[Obsolete("Use <c>user.roles</c> instead.")]
4343
public const string AttributeEnduserRole = "enduser.role";
4444

4545
/// <summary>

src/OpenTelemetry.SemanticConventions/Attributes/EventAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public static class EventAttributes
1717
/// <summary>
1818
/// Identifies the class / type of event.
1919
/// </summary>
20-
[Obsolete("Replaced by EventName top-level field on the LogRecord.")]
20+
[Obsolete("The value of this attribute MUST now be set as the value of the EventName field on the LogRecord to indicate that the LogRecord represents an Event.")]
2121
public const string AttributeEventName = "event.name";
2222
}

src/OpenTelemetry.SemanticConventions/Attributes/FaasAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static class FaasAttributes
136136
/// <li><strong>Google Cloud Run (Services):</strong> The <a href="https://cloud.google.com/run/docs/managing/revisions">revision</a>
137137
/// (i.e., the function name plus the revision suffix).</li>
138138
/// <li><strong>Google Cloud Functions:</strong> The value of the
139-
/// <a href="https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically"><c>K_REVISION</c> environment variable</a>.</li>
139+
/// <a href="https://cloud.google.com/run/docs/container-contract#services-env-vars"><c>K_REVISION</c> environment variable</a>.</li>
140140
/// <li><strong>Azure Functions:</strong> Not applicable. Do not set this attribute.</li>
141141
/// </ul>
142142
/// </remarks>

src/OpenTelemetry.SemanticConventions/Attributes/GcpAttributes.cs

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,51 @@ public static class GcpAttributes
7171
/// </summary>
7272
public const string AttributeGcpApphubWorkloadId = "gcp.apphub.workload.id";
7373

74+
/// <summary>
75+
/// The container within GCP where the AppHub destination application is defined.
76+
/// </summary>
77+
public const string AttributeGcpApphubDestinationApplicationContainer = "gcp.apphub_destination.application.container";
78+
79+
/// <summary>
80+
/// The name of the destination application as configured in AppHub.
81+
/// </summary>
82+
public const string AttributeGcpApphubDestinationApplicationId = "gcp.apphub_destination.application.id";
83+
84+
/// <summary>
85+
/// The GCP zone or region where the destination application is defined.
86+
/// </summary>
87+
public const string AttributeGcpApphubDestinationApplicationLocation = "gcp.apphub_destination.application.location";
88+
89+
/// <summary>
90+
/// Criticality of a destination workload indicates its importance to the business as specified in <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">AppHub type enum</a>.
91+
/// </summary>
92+
public const string AttributeGcpApphubDestinationServiceCriticalityType = "gcp.apphub_destination.service.criticality_type";
93+
94+
/// <summary>
95+
/// Software lifecycle stage of a destination service as defined <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">AppHub environment type</a>.
96+
/// </summary>
97+
public const string AttributeGcpApphubDestinationServiceEnvironmentType = "gcp.apphub_destination.service.environment_type";
98+
99+
/// <summary>
100+
/// The name of the destination service as configured in AppHub.
101+
/// </summary>
102+
public const string AttributeGcpApphubDestinationServiceId = "gcp.apphub_destination.service.id";
103+
104+
/// <summary>
105+
/// Criticality of a destination workload indicates its importance to the business as specified in <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">AppHub type enum</a>.
106+
/// </summary>
107+
public const string AttributeGcpApphubDestinationWorkloadCriticalityType = "gcp.apphub_destination.workload.criticality_type";
108+
109+
/// <summary>
110+
/// Environment of a destination workload is the stage of a software lifecycle as provided in the <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">AppHub environment type</a>.
111+
/// </summary>
112+
public const string AttributeGcpApphubDestinationWorkloadEnvironmentType = "gcp.apphub_destination.workload.environment_type";
113+
114+
/// <summary>
115+
/// The name of the destination workload as configured in AppHub.
116+
/// </summary>
117+
public const string AttributeGcpApphubDestinationWorkloadId = "gcp.apphub_destination.workload.id";
118+
74119
/// <summary>
75120
/// Identifies the Google Cloud service for which the official client library is intended.
76121
/// </summary>
@@ -202,4 +247,108 @@ public static class GcpApphubWorkloadEnvironmentTypeValues
202247
/// </summary>
203248
public const string Development = "DEVELOPMENT";
204249
}
250+
251+
/// <summary>
252+
/// Criticality of a destination workload indicates its importance to the business as specified in <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">AppHub type enum</a>.
253+
/// </summary>
254+
public static class GcpApphubDestinationServiceCriticalityTypeValues
255+
{
256+
/// <summary>
257+
/// Mission critical service.
258+
/// </summary>
259+
public const string MissionCritical = "MISSION_CRITICAL";
260+
261+
/// <summary>
262+
/// High impact.
263+
/// </summary>
264+
public const string High = "HIGH";
265+
266+
/// <summary>
267+
/// Medium impact.
268+
/// </summary>
269+
public const string Medium = "MEDIUM";
270+
271+
/// <summary>
272+
/// Low impact.
273+
/// </summary>
274+
public const string Low = "LOW";
275+
}
276+
277+
/// <summary>
278+
/// Software lifecycle stage of a destination service as defined <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">AppHub environment type</a>.
279+
/// </summary>
280+
public static class GcpApphubDestinationServiceEnvironmentTypeValues
281+
{
282+
/// <summary>
283+
/// Production environment.
284+
/// </summary>
285+
public const string Production = "PRODUCTION";
286+
287+
/// <summary>
288+
/// Staging environment.
289+
/// </summary>
290+
public const string Staging = "STAGING";
291+
292+
/// <summary>
293+
/// Test environment.
294+
/// </summary>
295+
public const string Test = "TEST";
296+
297+
/// <summary>
298+
/// Development environment.
299+
/// </summary>
300+
public const string Development = "DEVELOPMENT";
301+
}
302+
303+
/// <summary>
304+
/// Criticality of a destination workload indicates its importance to the business as specified in <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type">AppHub type enum</a>.
305+
/// </summary>
306+
public static class GcpApphubDestinationWorkloadCriticalityTypeValues
307+
{
308+
/// <summary>
309+
/// Mission critical service.
310+
/// </summary>
311+
public const string MissionCritical = "MISSION_CRITICAL";
312+
313+
/// <summary>
314+
/// High impact.
315+
/// </summary>
316+
public const string High = "HIGH";
317+
318+
/// <summary>
319+
/// Medium impact.
320+
/// </summary>
321+
public const string Medium = "MEDIUM";
322+
323+
/// <summary>
324+
/// Low impact.
325+
/// </summary>
326+
public const string Low = "LOW";
327+
}
328+
329+
/// <summary>
330+
/// Environment of a destination workload is the stage of a software lifecycle as provided in the <a href="https://cloud.google.com/app-hub/docs/reference/rest/v1/Attributes#type_1">AppHub environment type</a>.
331+
/// </summary>
332+
public static class GcpApphubDestinationWorkloadEnvironmentTypeValues
333+
{
334+
/// <summary>
335+
/// Production environment.
336+
/// </summary>
337+
public const string Production = "PRODUCTION";
338+
339+
/// <summary>
340+
/// Staging environment.
341+
/// </summary>
342+
public const string Staging = "STAGING";
343+
344+
/// <summary>
345+
/// Test environment.
346+
/// </summary>
347+
public const string Test = "TEST";
348+
349+
/// <summary>
350+
/// Development environment.
351+
/// </summary>
352+
public const string Development = "DEVELOPMENT";
353+
}
205354
}

0 commit comments

Comments
 (0)