TraceAttributes::DB_COLLECTION_NAME
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. 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.
@example public.users @example customers
File
-
vendor/
open-telemetry/ sem-conv/ TraceAttributes.php, line 965
Class
Namespace
OpenTelemetry\SemConvCode
public const DB_COLLECTION_NAME = 'db.collection.name';