| 1 |
# Name |
| 2 |
|
| 3 |
_id_ - add request ID to the context |
| 4 |
|
| 5 |
# Description |
| 6 |
|
| 7 |
_id_ adds a random request ID to the context. Other handlers such as _log_ use it in the logging if present. |
| 8 |
|
| 9 |
# Syntax |
| 10 |
|
| 11 |
```txt |
| 12 |
id |
| 13 |
``` |
| 14 |
|
| 15 |
# Examples |
| 16 |
|
| 17 |
```conffile |
| 18 |
example.org { |
| 19 |
id |
| 20 |
any |
| 21 |
whoami |
| 22 |
} |
| 23 |
``` |
| 24 |
|
| 25 |
# Context |
| 26 |
|
| 27 |
The _id_ handler adds a single key to the context: |
| 28 |
|
| 29 |
| Key | Type | Example | Description | |
| 30 |
| :------ | :------- | :------------------------- | :---------- | |
| 31 |
| `id/id` | `string` | 5FOXMDAG6YAHD6R7QOZ4UTX7VQ | The ID. | |
| 32 |
|
| 33 |
When atomdns-log(7) handler is used the ID is automatically logged as `id.id=..`. |