Skip to main content

Module canonical_trace

Module canonical_trace 

Source
Expand description

Migration-time trace/instance helper for the canonical Problem.

Mirrors crate::api::trace_layer::WithTraceContext / crate::api::trace_layer::WithRequestContext but operates on modkit_canonical_errors::Problem instead of the legacy crate::api::problem::Problem.

Scheduled for deletion once the canonical error middleware (cpt-cf-errors-component-error-middleware, see docs/arch/errors/DESIGN.md §3.2) lands and starts injecting trace_id / instance from request context. At that point every call site of CanonicalProblemMigrationExt::with_temporary_request_context disappears together with this trait.

Traits§

CanonicalProblemMigrationExt
Extension trait that fills trace_id and instance on a canonical Problem using the temporary span-id fallback documented in docs/arch/errors/DESIGN.md §3.7.