Skip to main content

JSONRPC_REQUEST_ID

Constant JSONRPC_REQUEST_ID 

pub const JSONRPC_REQUEST_ID: &'static str;
Available on crate features opentelemetry and semconv_experimental only.
Expand description

A string representation of the id property of the request and its corresponding response.

§Notes

Under the JSON-RPC specification, the id property may be a string, number, null, or omitted entirely. When omitted, the request is treated as a notification. Using null is not equivalent to omitting the id, but it is discouraged. Instrumentations SHOULD NOT capture this attribute when the id is null or omitted.

§Examples

  • "10"
  • "request-7"