semconv.com

db.collection.name

Stablestringas of v1.44.0

The name of a collection (table, container) within the database.

It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.

The collection name SHOULD NOT be extracted from db.query.text, when the database system supports query text with multiple collections in non-batch operations.

For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used.

Examples

Used by

metrics (5)

  • azure.cosmosdb.client.operation.request_charge
  • azure.cosmosdb.client.operation.request_charge
  • db.client.cosmosdb.operation.request_charge
  • db.client.operation.duration
  • db.client.response.returned_rows

spans (14)

  • span.azure.cosmosdb.client
  • span.db.cassandra.client
  • span.db.cassandra.client
  • span.db.client
  • span.db.client
  • span.db.elasticsearch.client
  • span.db.hbase.client
  • span.db.mariadb.client
  • span.db.mongodb.client *
  • span.db.mysql.client
  • span.db.oracledb.client
  • span.db.postgresql.client
  • span.db.sql_server.client
  • span.db.sql.client

* required on that signal.

History

  1. v1.33.0stability

    Promoted to stable.

  2. v1.30.0

    Already present at v1.30.0, the oldest release tracked here (release_candidate).

Definition sourceRegistry docsJSON