opentelemetry_semantic_conventions::attribute

Constant DB_NAMESPACE

source
pub const DB_NAMESPACE: &str = "db.namespace";
Expand description

The name of the database, fully qualified within the server address and port.

§Notes

If a database system has multiple namespace components, they SHOULD be concatenated (potentially using database system specific conventions) from most general to most specific namespace component, and more specific namespaces SHOULD NOT be captured without the more general namespaces, to ensure that “startswith” queries for the more general namespaces will be valid. Semantic conventions for individual database systems SHOULD document what db.namespace means in the context of that system. It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.

§Examples

  • "customers"
  • "test.users"