pub fn default_metadata_annotator(_req: &GatewayRequest) -> MetadataMapExpand description
A metadata annotator that injects request context information.
This annotator:
- Generates and injects a unique request ID (
x-request-id).- It assumes incoming
x-request-idheaders have been stripped by theHeaderLayerto ensure the ID is trusted and generated by the gateway.
- It assumes incoming
- Injects the gateway IP as
x-gateway-ip(placeholder).