Skip to main content

Module router

Module router 

Source
Expand description

Axum router construction with the request-id, tracing, and body-limit layers attached.

Structsยง

RouteAwareSpan ๐Ÿ”’
Selects the tracing level for HTTP spans based on path.
UuidRequestId ๐Ÿ”’
[MakeRequestId] implementation that assigns a random UUID v4 to every incoming request, attached as the x-request-id header.

Functionsยง

build_router
Builds the Axum [Router] with all embedding, health, and fleet-discovery routes, a 2 MiB body limit, request-id propagation, and structured tracing.