Logo
Explore Help
Sign In
USEFULL/gitea
1
0
Fork 0
You've already forked gitea
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-31 12:02:58 +00:00
Code Issues Packages Projects Releases Wiki Activity
gitea/modules/setting
History
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
..
actions.go
…
admin.go
…
api.go
…
attachment.go
…
cache.go
…
camo.go
…
config_provider.go
…
cors.go
…
cron_test.go
…
cron.go
…
database_sqlite.go
…
database_test.go
…
database.go
…
federation.go
…
git.go
…
highlight.go
…
i18n.go
…
incoming_email.go
…
indexer_test.go
…
indexer.go
…
lfs.go
…
log.go
Parse external request id from request headers, and print it in access log (#22906)
2023-03-10 09:54:32 -06:00
mailer_test.go
…
mailer.go
…
markup.go
…
metrics.go
…
migrations.go
…
mime_type_map.go
…
mirror.go
…
oauth2.go
…
other.go
…
packages_test.go
…
packages.go
…
picture.go
…
project.go
…
proxy.go
…
queue.go
…
repository.go
…
security.go
…
server.go
…
service.go
…
session.go
…
setting_test.go
…
setting.go
…
ssh.go
…
storage_test.go
…
storage.go
…
task.go
…
time.go
…
ui.go
…
webhook.go
…
Powered by Gitea Version: 1.23.7 Page: 2636ms Template: 539ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API