forgejo/docs/content/doc
sillyguodong 5155ec35c5
Parse external request id from request headers, and print it in access log (#22906)
Close: #22890.

---
### Configure in .ini file:
```ini
[log]
REQUEST_ID_HEADERS = X-Request-ID, X-Trace-Id
```

### Params in Request Header
```
X-Trace-ID: trace-id-1q2w3e4r
```

![image](https://user-images.githubusercontent.com/33891828/218665296-8fd19a0f-ada6-4236-8bdb-f99201c703e8.png)



### Log output:

![image](https://user-images.githubusercontent.com/33891828/218665225-cc242a57-4ffc-449a-a1f6-f45ded0ead60.png)
2023-03-10 09:54:32 -06:00
..
advanced Parse external request id from request headers, and print it in access log (#22906) 2023-03-10 09:54:32 -06:00
developers Add user webhooks (#21563) 2023-03-10 08:28:32 -06:00
features Add missed reverse proxy authentication documentation (#22250) 2023-02-03 18:37:25 +08:00
help Add repo adoption to FAQ (#22778) 2023-02-06 10:20:20 -06:00
installation Add Bash and Zsh completion scripts (#22646) 2023-02-21 12:32:24 -05:00
packages Add gradle samples in maven doc of packages (#23374) 2023-03-09 22:14:59 -05:00
secrets Fix secrets overview page missing from docs sidebar (#23143) 2023-02-25 10:56:02 +01:00
translation Add plural definitions for German translations (#21802) 2022-11-13 11:58:21 -05:00
upgrade Update gogs upgrade information (#22777) 2023-02-06 14:37:18 +08:00
usage Add basic documentation for labels, including scoped labels (#23304) 2023-03-05 20:35:12 +08:00
advanced.en-us.md
advanced.fr-fr.md
advanced.zh-cn.md
advanced.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00
developers.en-us.md Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
developers.zh-cn.md Refactor docs (#21627) 2022-10-31 23:16:19 +00:00
developers.zh-tw.md Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
features.en-us.md
features.zh-cn.md
features.zh-tw.md
help.en-us.md
help.fr-fr.md
help.zh-cn.md
help.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00
installation.en-us.md
installation.fr-fr.md
installation.zh-cn.md
installation.zh-tw.md
packages.en-us.md Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
translation.de-de.md Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
translation.en-us.md Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
translation.zh-tw.md Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
upgrade.en-us.md
upgrade.fr-fr.md
upgrade.zh-cn.md
upgrade.zh-tw.md
usage.en-us.md
usage.zh-cn.md
usage.zh-tw.md [docs] Add zh-tw Translations (#14507) 2021-01-29 01:57:58 +01:00