Skip to content
semconv.com
↑↓ move↵ openUse with your agent →

db.query.summary

Stablestringas of v1.45.0

Low cardinality summary of a database query.

The query summary describes a class of database queries and is useful as a grouping key, especially when analyzing telemetry for database calls involving complex queries.

Summary may be available to the instrumentation through instrumentation hooks or other means. If it is not available, instrumentations that support query parsing SHOULD generate a summary following Generating query summary section.

For batch operations, if the individual operations would all have the same db.query.summary when executed as non-batch operations, then that query summary SHOULD be used prepended by BATCH . Otherwise, db.query.summary SHOULD be BATCH or some other database system specific term if more applicable.

Examples

  • SELECT wuser_table
  • INSERT shipping_details SELECT orders
  • get user by id

Used by

spans (1)

  • db.client

metrics (2)

  • db.client.operation.duration
  • db.client.response.returned_rows

* required on that signal.

History

  1. v1.45.0

    No longer referenced by attributes.db.client.with_query, span.db.cassandra.client and 10 others.

  2. v1.45.0

    Now referenced by db.client and db.query (recommended).

  3. v1.33.0

    No longer referenced by span.azure.cosmosdb.client and span.db.mssql.client.

  4. v1.33.0

    Now referenced by span.db.oracledb.client and span.db.sql_server.client (recommended).

  5. v1.33.0Stability

    Promoted to stable.

  6. v1.30.0

    Already present at v1.30.0, the oldest release tracked here (release_candidate).

Definition sourceRegistry docsJSONUse with your agent →