pub struct ErrorLogger;Expand description
improved error logging with metrics integration
Implementations§
Source§impl ErrorLogger
impl ErrorLogger
Sourcepub async fn log_error(error: &McpError, context: ErrorContext)
pub async fn log_error(error: &McpError, context: ErrorContext)
Log an error with full context and metrics
Sourcepub async fn log_retry_attempt(
error: &McpError,
attempt: u32,
max_attempts: u32,
will_retry: bool,
context: ErrorContext,
)
pub async fn log_retry_attempt( error: &McpError, attempt: u32, max_attempts: u32, will_retry: bool, context: ErrorContext, )
Log a retry attempt with context
Sourcepub async fn log_retry_success(
operation: &str,
total_attempts: u32,
context: ErrorContext,
)
pub async fn log_retry_success( operation: &str, total_attempts: u32, context: ErrorContext, )
Log successful recovery after retries
Sourcepub fn create_operation_span(operation: &str, context: &ErrorContext) -> Span
pub fn create_operation_span(operation: &str, context: &ErrorContext) -> Span
Create a logging span for an operation
Auto Trait Implementations§
impl Freeze for ErrorLogger
impl RefUnwindSafe for ErrorLogger
impl Send for ErrorLogger
impl Sync for ErrorLogger
impl Unpin for ErrorLogger
impl UnwindSafe for ErrorLogger
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