Version: 2.5.0
request-id
Summary#
Name#
request-id plugin adds a unique ID (UUID) to each request proxied through APISIX. This plugin can be used to track an
API request. The plugin will not add a request id if the header_name is already present in the request.
Attributes#
| Name | Type | Requirement | Default | Valid | Description |
|---|---|---|---|---|---|
| header_name | string | optional | "X-Request-Id" | Request ID header name | |
| include_in_response | boolean | optional | false | Option to include the unique request ID in the response header |
How To Enable#
Create a route and enable the request-id plugin on the route:
Test Plugin#
Disable Plugin#
Remove the corresponding json configuration in the plugin configuration to disable the request-id.
APISIX plugins are hot-reloaded, therefore no need to restart APISIX.