Skip to content

Commit f7987b5

Browse files
authored
[SemanticConvention] Bump to v1.29.0 (#2428)
1 parent ff56618 commit f7987b5

23 files changed

+689
-56
lines changed

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

Lines changed: 87 additions & 0 deletions
Large diffs are not rendered by default.

src/OpenTelemetry.SemanticConventions/Attributes/AwsAttributes.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ public static class AwsAttributes
222222
/// The <c>copy_source</c> attribute applies to S3 copy operations and corresponds to the <c>--copy-source</c> parameter
223223
/// of the <a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html">copy-object operation within the S3 API</a>.
224224
/// This applies in particular to the following operations:
225-
/// <p>
226225
/// <ul>
227226
/// <li><a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html">copy-object</a></li>
228227
/// <li><a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html">upload-part-copy</a>.</li>
@@ -246,7 +245,6 @@ public static class AwsAttributes
246245
/// <remarks>
247246
/// The <c>key</c> attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter.
248247
/// This applies in particular to the following operations:
249-
/// <p>
250248
/// <ul>
251249
/// <li><a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html">copy-object</a></li>
252250
/// <li><a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html">delete-object</a></li>
@@ -283,7 +281,6 @@ public static class AwsAttributes
283281
/// The <c>upload_id</c> attribute applies to S3 multipart-upload operations and corresponds to the <c>--upload-id</c> parameter
284282
/// of the <a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html">S3 API</a> multipart operations.
285283
/// This applies in particular to the following operations:
286-
/// <p>
287284
/// <ul>
288285
/// <li><a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html">abort-multipart-upload</a></li>
289286
/// <li><a href="https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html">complete-multipart-upload</a></li>

src/OpenTelemetry.SemanticConventions/Attributes/CicdAttributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static class CicdAttributes
2525
public const string AttributeCicdPipelineRunId = "cicd.pipeline.run.id";
2626

2727
/// <summary>
28-
/// The human readable name of a task within a pipeline. Task here most closely aligns with a <a href="https://en.wikipedia.org/wiki/Pipeline_(computing)">computing process</a> in a pipeline. Other terms for tasks include commands, steps, and procedures.
28+
/// The human readable name of a task within a pipeline. Task here most closely aligns with a <a href="https://wikipedia.org/wiki/Pipeline_(computing)">computing process</a> in a pipeline. Other terms for tasks include commands, steps, and procedures.
2929
/// </summary>
3030
public const string AttributeCicdPipelineTaskName = "cicd.pipeline.task.name";
3131

@@ -35,7 +35,7 @@ public static class CicdAttributes
3535
public const string AttributeCicdPipelineTaskRunId = "cicd.pipeline.task.run.id";
3636

3737
/// <summary>
38-
/// The <a href="https://en.wikipedia.org/wiki/URL">URL</a> of the pipeline run providing the complete address in order to locate and identify the pipeline run.
38+
/// The <a href="https://wikipedia.org/wiki/URL">URL</a> of the pipeline run providing the complete address in order to locate and identify the pipeline run.
3939
/// </summary>
4040
public const string AttributeCicdPipelineTaskRunUrlFull = "cicd.pipeline.task.run.url.full";
4141

src/OpenTelemetry.SemanticConventions/Attributes/CloudAttributes.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public static class CloudAttributes
5757
/// <p>
5858
/// The exact value to use for <c>cloud.resource_id</c> depends on the cloud provider.
5959
/// The following well-known definitions MUST be used if you set this attribute and they apply:
60-
/// <p>
6160
/// <ul>
6261
/// <li><strong>AWS Lambda:</strong> The function <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">ARN</a>.
6362
/// Take care not to use the "invoked ARN" directly but replace any

src/OpenTelemetry.SemanticConventions/Attributes/CloudfoundryAttributes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static class CloudfoundryAttributes
2828
/// The index of the application instance. 0 when just one instance is active.
2929
/// </summary>
3030
/// <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>.
31+
/// CloudFoundry defines the <c>instance_id</c> in the <a href="https://github.com/cloudfoundry/loggregator-api#v2-envelope">Loggregator v2 envelope</a>.
3232
/// It is used for logs and metrics emitted by CloudFoundry. It is
3333
/// supposed to contain the application instance index for applications
3434
/// deployed on the runtime.

src/OpenTelemetry.SemanticConventions/Attributes/DbAttributes.cs

Lines changed: 105 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,13 @@ public static class DbAttributes
7777
/// </summary>
7878
/// <remarks>
7979
/// It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
80-
/// If the collection name is parsed from the query text, it SHOULD be the first collection name found in the query and it SHOULD match the value provided in the query text including any schema and database name prefix.
81-
/// For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used, otherwise <c>db.collection.name</c> SHOULD NOT be captured.
80+
/// <p>
81+
/// The collection name SHOULD NOT be extracted from <c>db.query.text</c>,
82+
/// unless the query format is known to only ever have a single collection name present.
83+
/// <p>
84+
/// For batch operations, if the individual operations are known to have the same collection name
85+
/// then that collection name SHOULD be used.
86+
/// <p>
8287
/// This attribute has stability level RELEASE CANDIDATE.
8388
/// </remarks>
8489
public const string AttributeDbCollectionName = "db.collection.name";
@@ -99,19 +104,33 @@ public static class DbAttributes
99104
/// </summary>
100105
public const string AttributeDbCosmosdbConnectionMode = "db.cosmosdb.connection_mode";
101106

107+
/// <summary>
108+
/// Account or request <a href="https://learn.microsoft.com/azure/cosmos-db/consistency-levels">consistency level</a>.
109+
/// </summary>
110+
public const string AttributeDbCosmosdbConsistencyLevel = "db.cosmosdb.consistency_level";
111+
102112
/// <summary>
103113
/// Deprecated, use <c>db.collection.name</c> instead.
104114
/// </summary>
105115
[Obsolete("Replaced by <c>db.collection.name</c>.")]
106116
public const string AttributeDbCosmosdbContainer = "db.cosmosdb.container";
107117

108118
/// <summary>
109-
/// Cosmos DB Operation Type.
119+
/// Deprecated, no replacement at this time.
110120
/// </summary>
121+
[Obsolete("No replacement at this time.")]
111122
public const string AttributeDbCosmosdbOperationType = "db.cosmosdb.operation_type";
112123

113124
/// <summary>
114-
/// RU consumed for that operation.
125+
/// 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.
126+
/// </summary>
127+
/// <remarks>
128+
/// 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>.
129+
/// </remarks>
130+
public const string AttributeDbCosmosdbRegionsContacted = "db.cosmosdb.regions_contacted";
131+
132+
/// <summary>
133+
/// Request units consumed for the operation.
115134
/// </summary>
116135
public const string AttributeDbCosmosdbRequestCharge = "db.cosmosdb.request_charge";
117136

@@ -210,23 +229,47 @@ public static class DbAttributes
210229
/// The name of the operation or command being executed.
211230
/// </summary>
212231
/// <remarks>
213-
/// It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
214-
/// If the operation name is parsed from the query text, it SHOULD be the first operation name found in the query.
215-
/// For batch operations, if the individual operations are known to have the same operation name then that operation name SHOULD be used prepended by <c>BATCH </c>, otherwise <c>db.operation.name</c> SHOULD be <c>BATCH</c> or some other database system specific term if more applicable.
232+
/// It is RECOMMENDED to capture the value as provided by the application
233+
/// without attempting to do any case normalization.
234+
/// <p>
235+
/// The operation name SHOULD NOT be extracted from <c>db.query.text</c>,
236+
/// unless the query format is known to only ever have a single operation name present.
237+
/// <p>
238+
/// For batch operations, if the individual operations are known to have the same operation name
239+
/// then that operation name SHOULD be used prepended by <c>BATCH </c>,
240+
/// otherwise <c>db.operation.name</c> SHOULD be <c>BATCH</c> or some other database
241+
/// system specific term if more applicable.
242+
/// <p>
216243
/// This attribute has stability level RELEASE CANDIDATE.
217244
/// </remarks>
218245
public const string AttributeDbOperationName = "db.operation.name";
219246

220247
/// <summary>
221-
/// A query parameter used in <c>db.query.text</c>, with <c><key></c> being the parameter name, and the attribute value being a string representation of the parameter value.
248+
/// A database operation parameter, with <c><key></c> being the parameter name, and the attribute value being a string representation of the parameter value.
222249
/// </summary>
223250
/// <remarks>
224-
/// Query parameters should only be captured when <c>db.query.text</c> is parameterized with placeholders.
225251
/// If a parameter has no name and instead is referenced only by index, then <c><key></c> SHOULD be the 0-based index.
252+
/// If <c>db.query.text</c> is also captured, then <c>db.operation.parameter.<key></c> SHOULD match up with the parameterized placeholders present in <c>db.query.text</c>.
226253
/// This attribute has stability level RELEASE CANDIDATE.
227254
/// </remarks>
255+
public const string AttributeDbOperationParameterTemplate = "db.operation.parameter";
256+
257+
/// <summary>
258+
/// A query parameter used in <c>db.query.text</c>, with <c><key></c> being the parameter name, and the attribute value being a string representation of the parameter value.
259+
/// </summary>
260+
[Obsolete("Replaced by <c>db.operation.parameter</c>.")]
228261
public const string AttributeDbQueryParameterTemplate = "db.query.parameter";
229262

263+
/// <summary>
264+
/// Low cardinality representation of a database query text.
265+
/// </summary>
266+
/// <remarks>
267+
/// <c>db.query.summary</c> provides static summary of the query text. It describes a class of database queries and is useful as a grouping key, especially when analyzing telemetry for database calls involving complex queries.
268+
/// Summary may be available to the instrumentation through instrumentation hooks or other means. If it is not available, instrumentations that support query parsing SHOULD generate a summary following <a href="../../docs/database/database-spans.md#generating-a-summary-of-the-query-text">Generating query summary</a> section.
269+
/// This attribute has stability level RELEASE CANDIDATE.
270+
/// </remarks>
271+
public const string AttributeDbQuerySummary = "db.query.summary";
272+
230273
/// <summary>
231274
/// The database query being executed.
232275
/// </summary>
@@ -244,6 +287,11 @@ public static class DbAttributes
244287
[Obsolete("Replaced by <c>db.namespace</c>.")]
245288
public const string AttributeDbRedisDatabaseIndex = "db.redis.database_index";
246289

290+
/// <summary>
291+
/// Number of rows returned by the operation.
292+
/// </summary>
293+
public const string AttributeDbResponseReturnedRows = "db.response.returned_rows";
294+
247295
/// <summary>
248296
/// Database response status code.
249297
/// </summary>
@@ -382,7 +430,7 @@ public static class DbClientConnectionsStateValues
382430
public static class DbCosmosdbConnectionModeValues
383431
{
384432
/// <summary>
385-
/// Gateway (HTTP) connections mode.
433+
/// Gateway (HTTP) connection.
386434
/// </summary>
387435
public const string Gateway = "gateway";
388436

@@ -393,83 +441,129 @@ public static class DbCosmosdbConnectionModeValues
393441
}
394442

395443
/// <summary>
396-
/// Cosmos DB Operation Type.
444+
/// Account or request <a href="https://learn.microsoft.com/azure/cosmos-db/consistency-levels">consistency level</a>.
445+
/// </summary>
446+
public static class DbCosmosdbConsistencyLevelValues
447+
{
448+
/// <summary>
449+
/// strong.
450+
/// </summary>
451+
public const string Strong = "Strong";
452+
453+
/// <summary>
454+
/// bounded_staleness.
455+
/// </summary>
456+
public const string BoundedStaleness = "BoundedStaleness";
457+
458+
/// <summary>
459+
/// session.
460+
/// </summary>
461+
public const string Session = "Session";
462+
463+
/// <summary>
464+
/// eventual.
465+
/// </summary>
466+
public const string Eventual = "Eventual";
467+
468+
/// <summary>
469+
/// consistent_prefix.
470+
/// </summary>
471+
public const string ConsistentPrefix = "ConsistentPrefix";
472+
}
473+
474+
/// <summary>
475+
/// Deprecated, no replacement at this time.
397476
/// </summary>
398477
public static class DbCosmosdbOperationTypeValues
399478
{
400479
/// <summary>
401480
/// batch.
402481
/// </summary>
482+
[Obsolete("No replacement at this time.")]
403483
public const string Batch = "batch";
404484

405485
/// <summary>
406486
/// create.
407487
/// </summary>
488+
[Obsolete("No replacement at this time.")]
408489
public const string Create = "create";
409490

410491
/// <summary>
411492
/// delete.
412493
/// </summary>
494+
[Obsolete("No replacement at this time.")]
413495
public const string Delete = "delete";
414496

415497
/// <summary>
416498
/// execute.
417499
/// </summary>
500+
[Obsolete("No replacement at this time.")]
418501
public const string Execute = "execute";
419502

420503
/// <summary>
421504
/// execute_javascript.
422505
/// </summary>
506+
[Obsolete("No replacement at this time.")]
423507
public const string ExecuteJavascript = "execute_javascript";
424508

425509
/// <summary>
426510
/// invalid.
427511
/// </summary>
512+
[Obsolete("No replacement at this time.")]
428513
public const string Invalid = "invalid";
429514

430515
/// <summary>
431516
/// head.
432517
/// </summary>
518+
[Obsolete("No replacement at this time.")]
433519
public const string Head = "head";
434520

435521
/// <summary>
436522
/// head_feed.
437523
/// </summary>
524+
[Obsolete("No replacement at this time.")]
438525
public const string HeadFeed = "head_feed";
439526

440527
/// <summary>
441528
/// patch.
442529
/// </summary>
530+
[Obsolete("No replacement at this time.")]
443531
public const string Patch = "patch";
444532

445533
/// <summary>
446534
/// query.
447535
/// </summary>
536+
[Obsolete("No replacement at this time.")]
448537
public const string Query = "query";
449538

450539
/// <summary>
451540
/// query_plan.
452541
/// </summary>
542+
[Obsolete("No replacement at this time.")]
453543
public const string QueryPlan = "query_plan";
454544

455545
/// <summary>
456546
/// read.
457547
/// </summary>
548+
[Obsolete("No replacement at this time.")]
458549
public const string Read = "read";
459550

460551
/// <summary>
461552
/// read_feed.
462553
/// </summary>
554+
[Obsolete("No replacement at this time.")]
463555
public const string ReadFeed = "read_feed";
464556

465557
/// <summary>
466558
/// replace.
467559
/// </summary>
560+
[Obsolete("No replacement at this time.")]
468561
public const string Replace = "replace";
469562

470563
/// <summary>
471564
/// upsert.
472565
/// </summary>
566+
[Obsolete("No replacement at this time.")]
473567
public const string Upsert = "upsert";
474568
}
475569

src/OpenTelemetry.SemanticConventions/Attributes/DeploymentAttributes.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ public static class DeploymentAttributes
2828
/// the <c>service.namespace</c>, <c>service.name</c> and <c>service.instance.id</c> resource attributes.
2929
/// This implies that resources carrying the following attribute combinations MUST be
3030
/// considered to be identifying the same service:
31-
/// <p>
3231
/// <ul>
3332
/// <li><c>service.name=frontend</c>, <c>deployment.environment.name=production</c></li>
3433
/// <li><c>service.name=frontend</c>, <c>deployment.environment.name=staging</c>.</li>

src/OpenTelemetry.SemanticConventions/Attributes/ErrorAttributes.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public static class ErrorAttributes
3434
/// <p>
3535
/// If a specific domain defines its own set of error identifiers (such as HTTP or gRPC status codes),
3636
/// it's RECOMMENDED to:
37-
/// <p>
3837
/// <ul>
3938
/// <li>Use a domain-specific attribute</li>
4039
/// <li>Set <c>error.type</c> to capture all errors, regardless of whether they are defined within the domain-specific set or not.</li>

src/OpenTelemetry.SemanticConventions/Attributes/FaasAttributes.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ public static class FaasAttributes
104104
/// For some cloud providers, the above definition is ambiguous. The following
105105
/// definition of function name MUST be used for this attribute
106106
/// (and consequently the span name) for the listed cloud providers/products:
107-
/// <p>
108107
/// <ul>
109108
/// <li><strong>Azure:</strong> The full name <c><FUNCAPP>/<FUNC></c>, i.e., function app name
110109
/// followed by a forward slash followed by the function name (this form
@@ -131,7 +130,6 @@ public static class FaasAttributes
131130
/// </summary>
132131
/// <remarks>
133132
/// Depending on the cloud provider and platform, use:
134-
/// <p>
135133
/// <ul>
136134
/// <li><strong>AWS Lambda:</strong> The <a href="https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html">function version</a>
137135
/// (an integer represented as a decimal string).</li>

0 commit comments

Comments
 (0)