1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00
forgejo/docs/content/doc/advanced
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
..
adding-legal-pages.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
clone-filter.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
cmd-embedded.en-us.md Fix various typos of software names (#18083) 2021-12-24 11:56:57 +08:00
config-cheat-sheet.en-us.md Parse external request id from request headers, and print it in access log (#22906) 2023-03-10 09:54:32 -06:00
config-cheat-sheet.zh-cn.md Parse external request id from request headers, and print it in access log (#22906) 2023-03-10 09:54:32 -06:00
customizing-gitea.en-us.md Update documentation for the new YAML label file format (#23020) 2023-03-07 00:39:07 +01:00
customizing-gitea.zh-cn.md Update documentation to reflect #15219 (#16442) 2021-07-15 20:49:12 +01:00
environment-variables.en-us.md Update docs and comments to remove macaron (#14491) 2021-01-29 16:35:30 +01:00
environment-variables.zh-cn.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
external-renderers.en-us.md Fix stylesheet HTML snippet for external renderers documentation (#22435) 2023-01-13 23:25:15 +00:00
logging-documentation.en-us.md Clarify logging documentation (#21665) 2022-11-22 09:04:29 +08:00
mail-templates.en-us.md Refactor docs (#21627) 2022-10-31 23:16:19 +00:00
protected-tags.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
repo-indexer.en-us.md Reformat docs (#13897) 2020-12-09 07:47:06 +01:00
repo-mirror.en-us.md Improve pull/ push mirror documentation (especially for GitHub) (#21801) 2022-11-14 21:17:39 +00:00
search-engines-indexation.en-us.md Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
signing.en-us.md Add hint to GNUPGHOME environment variable (#20134) 2022-07-10 17:04:46 +08:00