Struct jsonrpsee_core::tracing::RpcTracing
source · pub struct RpcTracing(_);Expand description
Wrapper over tracing::Span to trace individual method calls, notifications and similar.
Implementations§
source§impl RpcTracing
impl RpcTracing
sourcepub fn method_call(method: &str) -> Self
pub fn method_call(method: &str) -> Self
Create a method_call tracing target.
To enable this you need to call RpcTracing::method_call("some_method").span().enable().
sourcepub fn notification(method: &str) -> Self
pub fn notification(method: &str) -> Self
Create a notification tracing target.
To enable this you need to call RpcTracing::notification("some_method").span().enable().