Module error

Source
Expand description

Error handling utilities for the application.

This module provides a structured approach to error handling with context and metadata. The primary type is ErrorContext, which wraps errors with additional information such as timestamps, trace IDs, and custom metadata.

Structs§

ErrorContext
A context wrapper for errors with additional metadata.

Traits§

TraceableError
A trait for errors that can provide a trace ID

Functions§

metadata_to_fields
Extract structured fields from metadata for tracing