0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 22:24:55 +01:00
gitea/modules
zeripath 70628bd870
Add auto logging of goroutine pid label (#19212)
* Add auto logging of goroutine pid label

This PR uses unsafe to export the hidden runtime_getProfLabel function from the
runtime package and then casts the result to a map[string]string.

We can then interrogate this map to get the pid label from the goroutine allowing
us to log it with any logging request.

Reference #19202

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-26 20:04:36 +00:00
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
context Add ContextUser to http request context (#18798) 2022-03-26 17:04:22 +08:00
convert
csv
doctor Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
emoji
eventsource
generate
git
gitgraph
graceful Add pprof labels in processes and for lifecycles (#19202) 2022-03-25 12:47:12 +00:00
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer
json
lfs Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
log Add auto logging of goroutine pid label (#19212) 2022-03-26 20:04:36 +00:00
markup Bump goldmark to v1.4.11 (#19201) 2022-03-24 11:47:37 -04:00
metrics
migration
nosql
notification
options
password
pprof
private Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00
process Add pprof labels in processes and for lifecycles (#19202) 2022-03-25 12:47:12 +00:00
proxy
public
queue
recaptcha
references
repository Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
secret
session
setting Ensure that setting.LocalURL always has a trailing slash (#19171) 2022-03-22 16:59:57 +00:00
ssh
storage Clean paths when looking in Storage (#19124) 2022-03-22 17:02:26 -04:00
structs
svg
sync
templates Prevent start panic due to missing DotEscape function 2022-03-23 16:08:27 +00:00
test Use ctx instead of db.DefaultContext in some packages(routers/services/modules) (#19163) 2022-03-22 16:22:54 +01:00
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util Cleanup protected branches when deleting users & teams (#19158) 2022-03-22 09:09:45 +08:00
validation format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
web Update HTTP status codes to modern codes (#18063) 2022-03-23 12:54:07 +08:00