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

db.response.status_code

Stablestringas of v1.45.0

Database response status code.

The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes. The value MAY use a standardized string representation of a numeric status code, if one exists, instead of the numeric code. The value MAY be a synthetic status provided by the client library rather than returned by the remote service. Semantic conventions for individual database systems SHOULD document what db.response.status_code means in the context of that system.

Examples

  • 102
  • ORA-17002
  • 08P01
  • 404

Used by

spans (14)

  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client
  • db.client

metrics (3)

  • azure.cosmosdb.client.operation.request_charge
  • db.client.operation.duration
  • db.client.response.returned_rows

* required on that signal.

History

  1. v1.45.0

    No longer referenced by attributes.azure.cosmosdb.minimal, attributes.db.client.minimal and 19 others.

  2. v1.45.0Usage

    Now referenced by azure.cosmosdb.client.detailed, db.client and 2 others (conditionally required).

  3. v1.33.0

    No longer referenced by 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 →