You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(instr-aws-sdk): support db semconv migration for dynamodb (#3312)
This adds support for using `OTEL_SEMCONV_STABILITY_OPT_IN` for controlled migration to stable `db.*` semconv. The `db.*` attributes are controlled by the `database[dup]` token.
Refs: #2953
|`rpc.method`| string | The name of the operation corresponding to the request, as returned by the AWS SDK. If the SDK does not provide a way to retrieve a name, the name of the command SHOULD be used, removing the suffix `Command` if present, resulting in a PascalCase name with no spaces. |`PutObject`|
68
68
|`rpc.service`| string | The name of the service to which a request is made, as returned by the AWS SDK. If the SDK does not provide a away to retrieve a name, the name of the SDK's client interface for a service SHOULD be used, removing the suffix `Client` if present, resulting in a PascalCase name with no spaces. |`S3`, `DynamoDB`, `Route53`|
@@ -111,7 +111,7 @@ This package emits telemetry using a mix of Semantic Convention versions. While
111
111
Attributes collected (this list is currently not exhaustive):
|`http.status_code` / `http.response.status_code`| (aws-sdk) HTTP response status code. See "HTTP Semantic Convention migration" note below. ||
116
116
|`rpc.method`| The name of the (logical) method being called. ||
117
117
|`rpc.service`| The full (logical) name of the service being called. ||
@@ -138,10 +138,10 @@ Attributes collected (this list is currently not exhaustive):
138
138
|`aws.dynamodb.table_count`| The number of items in the `TableNames` response parameter. | dynamodb |
139
139
|`aws.dynamodb.table_names`| The keys in the `RequestItems` object field. | dynamodb |
140
140
|`aws.dynamodb.total_segments`| The value of the `TotalSegments` request parameter. | dynamodb |
141
-
|`db.name`| The name of the database being accessed. | dynamodb |
142
-
|`db.operation`| The name of the operation being executed. | dynamodb |
143
-
|`db.statement`| The database statement being executed. | dynamodb |
144
-
|`db.system`| An identifier for the database management system (DBMS) product being used. | dynamodb |
141
+
|`db.name`/ `db.namespace`| The name of the database (TableName). See "Database Semantic Convention migration" note below.| dynamodb |
142
+
|`db.operation`/ `db.operation.name`| The name of the operation. See "Database Semantic Convention migration" note below.| dynamodb |
143
+
|`db.statement`/ `db.query.text`| The database statement. See "Database Semantic Convention migration" note below.| dynamodb |
144
+
|`db.system`/ `db.system.name`| Database system identifier. See "Database Semantic Convention migration" note below.| dynamodb |
145
145
|`faas.execution`| The execution ID of the current function execution. | lambda |
146
146
|`faas.invoked_name`| The name of the invoked function. | lambda |
147
147
|`faas.invoked_provider`| The cloud provider of the invoked function. | lambda |
@@ -177,6 +177,30 @@ For this instrumentation, the only impacted attributes are as follows:
177
177
178
178
See the [HTTP semconv migration plan for OpenTelemetry JS instrumentations](https://github.com/open-telemetry/opentelemetry-js/issues/5646) for more details.
179
179
180
+
### Database Semantic Convention migration
181
+
182
+
Database semantic conventions (semconv) were stabilized in v1.33.0, and a [migration process](https://opentelemetry.io/docs/specs/semconv/non-normative/db-migration/)
183
+
was defined. For DynamoDB operations, `instrumentation-aws-sdk` emits database-related
184
+
attributes. The `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable can be used to
185
+
customize which database semantic conventions are used.
186
+
187
+
To select which semconv version(s) is emitted from this instrumentation, use the
0 commit comments