Name
id - add request ID to the context
Description
id adds a random request ID to the context. Other handlers such as log use it in the logging if present.
Syntax
id
Examples
example.org {
id
any
whoami
}
Context
The id handler adds a single key to the context:
| Key |
Type |
Example |
Description |
id/id |
string |
5FOXMDAG6YAHD6R7QOZ4UTX7VQ |
The ID. |
When the log handler is used the ID is automatically logged as id.id=...