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

rpc.status_code

Stablestringas of v1.45.0

Status code of the RPC returned by the RPC server or generated by the client

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 RPC frameworks SHOULD document what rpc.status_code means in the context of that system and which values are considered to represent errors.

Examples

  • OK
  • DEADLINE_EXCEEDED
  • -32602

Used by

metrics (17)

  • otel.sdk.exporter.operation.duration
  • rpc.client.call.duration
  • rpc.client.duration
  • rpc.client.request.size
  • rpc.client.requests_per_rpc
  • rpc.client.response.size
  • rpc.client.responses_per_rpc
  • rpc.client.call.duration *
  • rpc.server.call.duration *
  • rpc.client.call.duration *
  • rpc.server.call.duration *
  • rpc.server.call.duration
  • rpc.server.duration
  • rpc.server.request.size
  • rpc.server.requests_per_rpc
  • rpc.server.response.size
  • rpc.server.responses_per_rpc

spans (10)

  • span.rpc.call.client
  • span.rpc.call.server
  • rpc.call.client
  • rpc.call.server
  • rpc.call.client *
  • rpc.call.server *
  • rpc.call.client *
  • rpc.call.server *
  • rpc.call.client
  • rpc.call.server

* required on that signal.

History

  1. v1.45.0

    Added as stable.

Definition sourceRegistry docsJSONUse with your agent →