opentelemetry_semantic_conventions::attribute

Constant DB_COLLECTION_NAME

source
pub const DB_COLLECTION_NAME: &str = "db.collection.name";
Expand description

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

§Notes

It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. 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. For batch operations, if the individual operations are known to have the same collection name then that collection name SHOULD be used, otherwise db.collection.name SHOULD NOT be captured.

§Examples

  • "public.users"
  • "customers"