opentelemetry_semantic_conventions::attribute

Constant RPC_JSONRPC_REQUEST_ID

source
pub const RPC_JSONRPC_REQUEST_ID: &str = "rpc.jsonrpc.request_id";
Expand description

id property of request or response. Since protocol allows id to be int, string, null or missing (for notifications), value is expected to be cast to string for simplicity. Use empty string in case of null value. Omit entirely if this is a notification.

ยงExamples

  • "10"
  • "request-7"
  • ""