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§
- Canonical
Problem Migration Ext - Extension trait that fills
trace_idandinstanceon a canonicalProblemusing the temporary span-id fallback documented indocs/arch/errors/DESIGN.md§3.7.