You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| header_name | string | False | "X-Request-Id" || Name of the header that carries the request unique ID. Note that if a request carries an ID in the `header_name` header, the Plugin will use the header value as the unique ID and will not overwrite it with the generated ID. |
42
42
| include_in_response | boolean | False | true || If true, include the generated request ID in the response header, where the name of the header is the `header_name` value. |
43
-
| algorithm | string | False | "uuid" |["uuid","nanoid","range_id","ksuid"]| Algorithm used for generating the unique ID. When set to `uuid` , the Plugin generates a universally unique identifier. When set to `nanoid`, the Plugin generates a compact, URL-safe ID. When set to `range_id`, the Plugin generates a sequential ID with specific parameters. When set to `ksuid`, the Plugin generates a sequential ID with timestamp and randomly number. |
43
+
| algorithm | string | False | "uuid" |["uuid","nanoid","range_id","ksuid"]| Algorithm used for generating the unique ID. When set to `uuid` , the Plugin generates a universally unique identifier. When set to `nanoid`, the Plugin generates a compact, URL-safe ID. When set to `range_id`, the Plugin generates a sequential ID with specific parameters. When set to `ksuid`, the Plugin generates a sequential ID with timestamp and random number. |
44
44
| range_id | object | False ||| Configuration for generating a request ID using the `range_id` algorithm. |
45
45
| range_id.char_set | string | False | "abcdefghijklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ0123456789" | minimum length 6 | Character set used for the `range_id` algorithm. |
46
46
| range_id.length | integer | False | 16 | >=6 | Length of the generated ID for the `range_id` algorithm. |
@@ -275,13 +275,13 @@ Send a request to the Route:
275
275
curl -i "http://127.0.0.1:9080/anything"
276
276
```
277
277
278
-
You should receive an `HTTP/1.1 200 OK` response and see the response includes the `X-Req-Identifier` header with an ID generated using the `ksuid` algorithm:
278
+
You should receive an `HTTP/1.1 200 OK` response and see the response includes the `X-Request-Id` header with an ID generated using the `ksuid` algorithm:
279
279
280
280
```text
281
281
X-Request-Id: 325ghCANEKjw6Jsfejg5p6QrLYB
282
282
```
283
283
284
-
If installed[ksuid](https://github.com/segmentio/ksuid?tab=readme-ov-file#command-line-tool)command tool,This ID can be viewed through `ksuid -f inspect 325ghCANEKjw6Jsfejg5p6QrLYB`:
284
+
If the[ksuid](https://github.com/segmentio/ksuid?tab=readme-ov-file#command-line-tool)is installed, this ID can be viewed through `ksuid -f inspect 325ghCANEKjw6Jsfejg5p6QrLYB`:
0 commit comments