Semantic Conventions for AWS DynamoDB

Status: Experimental

The Semantic Conventions for AWS DynamoDB extend and override the general AWS SDK Semantic Conventions that describe common AWS SDK attributes and the Database Semantic Conventions. that describe common database operations attributes in addition to the Semantic Conventions described on this page.

Common Attributes

These attributes are filled in for all DynamoDB request types.

AttributeTypeDescriptionExamplesRequirement LevelStability
db.systemstringThe value dynamodb.dynamodbRequiredExperimental

DynamoDB.BatchGetItem

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.table_namesstring[]The keys in the RequestItems object field.[Users, Cats]RecommendedExperimental

DynamoDB.BatchWriteItem

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.item_collection_metricsstringThe JSON-serialized value of the ItemCollectionMetrics response field.{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }RecommendedExperimental
aws.dynamodb.table_namesstring[]The keys in the RequestItems object field.[Users, Cats]RecommendedExperimental

DynamoDB.CreateTable

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.global_secondary_indexesstring[]The JSON-serialized value of each item of the GlobalSecondaryIndexes request field[{ "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }]RecommendedExperimental
aws.dynamodb.item_collection_metricsstringThe JSON-serialized value of the ItemCollectionMetrics response field.{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }RecommendedExperimental
aws.dynamodb.local_secondary_indexesstring[]The JSON-serialized value of each item of the LocalSecondaryIndexes request field.[{ "IndexArn": "string", "IndexName": "string", "IndexSizeBytes": number, "ItemCount": number, "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" } }]RecommendedExperimental
aws.dynamodb.provisioned_read_capacitydoubleThe value of the ProvisionedThroughput.ReadCapacityUnits request parameter.1.0; 2.0RecommendedExperimental
aws.dynamodb.provisioned_write_capacitydoubleThe value of the ProvisionedThroughput.WriteCapacityUnits request parameter.1.0; 2.0RecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.DeleteItem

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.item_collection_metricsstringThe JSON-serialized value of the ItemCollectionMetrics response field.{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }RecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.DeleteTable

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.DescribeTable

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.GetItem

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consistent_readbooleanThe value of the ConsistentRead request parameter.RecommendedExperimental
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.projectionstringThe value of the ProjectionExpression request parameter.Title; Title, Price, Color; Title, Description, RelatedItems, ProductReviewsRecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.ListTables

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.exclusive_start_tablestringThe value of the ExclusiveStartTableName request parameter.Users; CatsTableRecommendedExperimental
aws.dynamodb.limitintThe value of the Limit request parameter.10RecommendedExperimental
aws.dynamodb.table_countintThe number of items in the TableNames response parameter.20RecommendedExperimental

DynamoDB.PutItem

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.item_collection_metricsstringThe JSON-serialized value of the ItemCollectionMetrics response field.{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }RecommendedExperimental
aws.dynamodb.table_namesstring[]The keys in the RequestItems object field.[Users, Cats]RecommendedExperimental

DynamoDB.Query

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.attributes_to_getstring[]The value of the AttributesToGet request parameter.[lives, id]RecommendedExperimental
aws.dynamodb.consistent_readbooleanThe value of the ConsistentRead request parameter.RecommendedExperimental
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.index_namestringThe value of the IndexName request parameter.name_to_groupRecommendedExperimental
aws.dynamodb.limitintThe value of the Limit request parameter.10RecommendedExperimental
aws.dynamodb.projectionstringThe value of the ProjectionExpression request parameter.Title; Title, Price, Color; Title, Description, RelatedItems, ProductReviewsRecommendedExperimental
aws.dynamodb.scan_forwardbooleanThe value of the ScanIndexForward request parameter.RecommendedExperimental
aws.dynamodb.selectstringThe value of the Select request parameter.ALL_ATTRIBUTES; COUNTRecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.Scan

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.attributes_to_getstring[]The value of the AttributesToGet request parameter.[lives, id]RecommendedExperimental
aws.dynamodb.consistent_readbooleanThe value of the ConsistentRead request parameter.RecommendedExperimental
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.countintThe value of the Count response parameter.10RecommendedExperimental
aws.dynamodb.index_namestringThe value of the IndexName request parameter.name_to_groupRecommendedExperimental
aws.dynamodb.limitintThe value of the Limit request parameter.10RecommendedExperimental
aws.dynamodb.projectionstringThe value of the ProjectionExpression request parameter.Title; Title, Price, Color; Title, Description, RelatedItems, ProductReviewsRecommendedExperimental
aws.dynamodb.scanned_countintThe value of the ScannedCount response parameter.50RecommendedExperimental
aws.dynamodb.segmentintThe value of the Segment request parameter.10RecommendedExperimental
aws.dynamodb.selectstringThe value of the Select request parameter.ALL_ATTRIBUTES; COUNTRecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental
aws.dynamodb.total_segmentsintThe value of the TotalSegments request parameter.100RecommendedExperimental

DynamoDB.UpdateItem

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.item_collection_metricsstringThe JSON-serialized value of the ItemCollectionMetrics response field.{ "string" : [ { "ItemCollectionKey": { "string" : { "B": blob, "BOOL": boolean, "BS": [ blob ], "L": [ "AttributeValue" ], "M": { "string" : "AttributeValue" }, "N": "string", "NS": [ "string" ], "NULL": boolean, "S": "string", "SS": [ "string" ] } }, "SizeEstimateRangeGB": [ number ] } ] }RecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental

DynamoDB.UpdateTable

AttributeTypeDescriptionExamplesRequirement LevelStability
aws.dynamodb.attribute_definitionsstring[]The JSON-serialized value of each item in the AttributeDefinitions request field.[{ "AttributeName": "string", "AttributeType": "string" }]RecommendedExperimental
aws.dynamodb.consumed_capacitystring[]The JSON-serialized value of each item in the ConsumedCapacity response field.[{ "CapacityUnits": number, "GlobalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "LocalSecondaryIndexes": { "string" : { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number } }, "ReadCapacityUnits": number, "Table": { "CapacityUnits": number, "ReadCapacityUnits": number, "WriteCapacityUnits": number }, "TableName": "string", "WriteCapacityUnits": number }]RecommendedExperimental
aws.dynamodb.global_secondary_index_updatesstring[]The JSON-serialized value of each item in the GlobalSecondaryIndexUpdates request field.[{ "Create": { "IndexName": "string", "KeySchema": [ { "AttributeName": "string", "KeyType": "string" } ], "Projection": { "NonKeyAttributes": [ "string" ], "ProjectionType": "string" }, "ProvisionedThroughput": { "ReadCapacityUnits": number, "WriteCapacityUnits": number } }]RecommendedExperimental
aws.dynamodb.provisioned_read_capacitydoubleThe value of the ProvisionedThroughput.ReadCapacityUnits request parameter.1.0; 2.0RecommendedExperimental
aws.dynamodb.provisioned_write_capacitydoubleThe value of the ProvisionedThroughput.WriteCapacityUnits request parameter.1.0; 2.0RecommendedExperimental
aws.dynamodb.table_namesstring[]A single-element array with the value of the TableName request parameter.[Users]RecommendedExperimental