You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/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)
2 years ago
..
advanced Parse external request id from request headers, and print it in access log (#22906) 2 years ago
developers Add user webhooks (#21563) 2 years ago
features Add missed reverse proxy authentication documentation (#22250) 2 years ago
help Add repo adoption to FAQ (#22778) 2 years ago
installation Add Bash and Zsh completion scripts (#22646) 2 years ago
packages Add gradle samples in maven doc of packages (#23374) 2 years ago
secrets Fix secrets overview page missing from docs sidebar (#23143) 2 years ago
translation Add plural definitions for German translations (#21802) 2 years ago
upgrade Update gogs upgrade information (#22777) 2 years ago
usage Add basic documentation for labels, including scoped labels (#23304) 2 years ago
advanced.en-us.md Import docs into main repository (#2874) 7 years ago
advanced.fr-fr.md General documentation cleanup (#3317) 7 years ago
advanced.zh-cn.md Import docs into main repository (#2874) 7 years ago
advanced.zh-tw.md [docs] Add zh-tw Translations (#14507) 4 years ago
developers.en-us.md Add Package Registry (#16510) 3 years ago
developers.zh-cn.md Refactor docs (#21627) 2 years ago
developers.zh-tw.md Add Package Registry (#16510) 3 years ago
features.en-us.md Import docs into main repository (#2874) 7 years ago
features.zh-cn.md Import docs into main repository (#2874) 7 years ago
features.zh-tw.md Import docs into main repository (#2874) 7 years ago
help.en-us.md Implement documentation search (#8937) 5 years ago
help.fr-fr.md Implement documentation search (#8937) 5 years ago
help.zh-cn.md Implement documentation search (#8937) 5 years ago
help.zh-tw.md [docs] Add zh-tw Translations (#14507) 4 years ago
installation.en-us.md Import docs into main repository (#2874) 7 years ago
installation.fr-fr.md General documentation cleanup (#3317) 7 years ago
installation.zh-cn.md Import docs into main repository (#2874) 7 years ago
installation.zh-tw.md Import docs into main repository (#2874) 7 years ago
packages.en-us.md Add Package Registry (#16510) 3 years ago
translation.de-de.md Add Package Registry (#16510) 3 years ago
translation.en-us.md Add Package Registry (#16510) 3 years ago
translation.zh-tw.md Add Package Registry (#16510) 3 years ago
upgrade.en-us.md Import docs into main repository (#2874) 7 years ago
upgrade.fr-fr.md General documentation cleanup (#3317) 7 years ago
upgrade.zh-cn.md Import docs into main repository (#2874) 7 years ago
upgrade.zh-tw.md Import docs into main repository (#2874) 7 years ago
usage.en-us.md Import docs into main repository (#2874) 7 years ago
usage.zh-cn.md ZH-CN translation of Usage part (#5086) 6 years ago
usage.zh-tw.md [docs] Add zh-tw Translations (#14507) 4 years ago