Request Tracking
Request Tracking with Request ID
To enable end-to-end observability and simplify debugging, our APIs support Request ID–based tracing. This allows you to track a request as it flows through the gateway, domain services, and downstream systems.
What is Request ID?
A Request ID is a unique identifier associated with each API request. It helps in:
- Tracing a request across multiple services
- Debugging failures and timeouts
- Correlating logs across distributed systems
In our system, this identifier is logged as a correlationId.
How it works
- Include a Request ID in the request header using x-request-id.
- The same ID is propagated automatically across all downstream services.
- All services log this value as correlationId, enabling end-to-end traceability.
- If no Request ID is provided, the system will automatically generate one for the request.
Header
| Header Name | Required | Description |
|---|---|---|
| x-request-id | No | Unique identifier for the request. Logged as correlationId across systems |
Example
Request
POST /graphql
Host: api.example.com
x-request-id: 123e4567-e89b-12d3-a456-426614174000
Content-Type: application/jsonBehavior
- The provided x-request-id is propagated downstream.
- All related logs across services will include:
correlationId:123e4567-e89b-12d3-a456-426614174000