pub struct TracingUtils;Expand description
Tracing utilities for common operations
Implementations§
Source§impl TracingUtils
impl TracingUtils
Sourcepub fn mcp_request_span(method: &str, request_id: &str) -> Span
pub fn mcp_request_span(method: &str, request_id: &str) -> Span
Create a span for MCP request processing
Sourcepub fn tool_execution_span(tool_name: &str, request_id: &str) -> Span
pub fn tool_execution_span(tool_name: &str, request_id: &str) -> Span
Create a span for tool execution
Sourcepub fn resource_operation_span(operation: &str, uri: &str) -> Span
pub fn resource_operation_span(operation: &str, uri: &str) -> Span
Create a span for resource operations
Sourcepub fn transport_operation_span(operation: &str, transport_type: &str) -> Span
pub fn transport_operation_span(operation: &str, transport_type: &str) -> Span
Create a span for transport operations
Sourcepub fn record_request_start(method: &str, request_id: &str)
pub fn record_request_start(method: &str, request_id: &str)
Record a request start event
Sourcepub fn record_request_complete(
method: &str,
request_id: &str,
duration_ms: u64,
success: bool,
)
pub fn record_request_complete( method: &str, request_id: &str, duration_ms: u64, success: bool, )
Record a request completion event
Auto Trait Implementations§
impl Freeze for TracingUtils
impl RefUnwindSafe for TracingUtils
impl Send for TracingUtils
impl Sync for TracingUtils
impl Unpin for TracingUtils
impl UnwindSafe for TracingUtils
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more