Skip to main content

ORACLE_DB_SERVICE

Constant ORACLE_DB_SERVICE 

pub const ORACLE_DB_SERVICE: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

The service name currently associated with the database connection.

§Notes

The effective service name for a connection can change during its lifetime, for example after executing sql, ALTER SESSION. If an instrumentation cannot reliably obtain the current service name for each operation without issuing an additional query (such as SELECT SYS_CONTEXT), it is RECOMMENDED to fall back to the service name originally provided at connection establishment.

§Examples

  • "order-processing-service"
  • "db_low.adb.oraclecloud.com"
  • "db_high.adb.oraclecloud.com"