pub const DB_INSTANCE_ID: &str = "db.instance.id";
Expand description

An identifier (address, unique name, or any other identifier) of the database instance that is executing queries or mutations on the current connection. This is useful in cases where the database is running in a clustered environment and the instrumentation is able to record the node executing the query. The client may obtain this value in databases like MySQL using queries like select @@hostname.

§Examples

  • mysql-e26b99z.example.com