opentelemetry_semantic_conventions::attribute

Constant DB_QUERY_PARAMETER

source
pub const DB_QUERY_PARAMETER: &str = "db.query.parameter";
Expand description

A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.

§Notes

Query parameters should only be captured when db.query.text is parameterized with placeholders. If a parameter has no name and instead is referenced only by index, then <key> SHOULD be the 0-based index.

§Examples

  • "someval"
  • "55"