Semantic Conventions for Cassandra
The Semantic Conventions for Cassandra extend and override the Database Semantic Conventions that describe common database operations attributes in addition to the Semantic Conventions described on this page.
db.system MUST be set to
|int||The fetch size used for paging, i.e. how many rows will be returned at once.||Recommended|
|string||The consistency level of the query. Based on consistency values from CQL.||Recommended|
|string||The name of the primary table that the operation is acting upon, including the keyspace name (if applicable). ||Recommended|
|boolean||Whether or not the query is idempotent.||Recommended|
|int||The number of times a query was speculatively executed. Not set or ||Recommended|
|string||The ID of the coordinating node for a query.||Recommended|
|string||The data center of the coordinating node for a query.||Recommended|
|string||The keyspace name in Cassandra. ||Conditionally Required: If applicable.|
: This mirrors the db.sql.table attribute but references cassandra rather than sql. It is not recommended to attempt any client-side parsing of
db.statement just to get this property, but it should be set if it is provided by the library being instrumented. If the operation is acting upon an anonymous table, or more than one table, this value MUST NOT be set.
: For Cassandra the
db.name should be set to the Cassandra keyspace name.
db.cassandra.consistency_level MUST be one of the following: