opentelemetry_semantic_conventions::attribute

Constant RPC_METHOD

source
pub const RPC_METHOD: &str = "rpc.method";
Expand description

The name of the (logical) method being called, must be equal to the $method part in the span name.

§Notes

This is the logical name of the method from the RPC interface perspective, which can be different from the name of any implementing method/function. The code.function attribute may be used to store the latter (e.g., method actually executing the call on the server side, RPC client stub method on the client side).

§Examples

  • "exampleMethod"