forgejo/models/db
Gusted 3f44b97b5f
feat: add limited execution tracing support
- For every process that is spawned (every new non-trivial goroutine
such as http requests, queues or tasks) start a [execution
tracer](https://pkg.go.dev/runtime/trace). This allows very precise
diagnosis of how each individual process over a time period.
- It's safe and [fast](https://go.dev/blog/execution-traces-2024#low-overhead-tracing) to
be run in production, hence no setting to disable this. There's only
noticable overhead when tracing is actually performed and not continuous.
- Proper tracing support would mean the codebase would be full of
`trace.WithRegion` and `trace.Log`, which feels premature for this patch
as there's no real-world usage yet to indicate which places would need
this the most. So far only Git commands and SQL queries receive somewhat
proper tracing support given that these are used throughout the codebase.
- Make git commands a new process type.
- Add tracing to diagnosis zip file.
2025-01-05 04:07:49 +01:00
..
install Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
paginator Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
collation.go s/Gitea/Forgejo in various log messages and comments 2024-04-21 21:26:15 +05:00
common.go [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
consistency.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
context.go Fix misuse of TxContext (#30061) 2024-03-30 07:17:29 +01:00
context_committer_test.go chore: use errors.New to replace fmt.Errorf with no parameters (#32800) 2024-12-15 09:15:57 +01:00
context_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
convert.go style: reenable switch check 2024-08-18 15:19:01 +02:00
engine.go feat: add limited execution tracing support 2025-01-05 04:07:49 +01:00
engine_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
error.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
index.go [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
index_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
iterate.go refactor: make db iterate context aware (#27710) 2023-10-21 10:05:29 +08:00
iterate_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
list.go Fix joins in db.Find(AndCount) (#28978) 2024-01-30 02:37:24 +00:00
list_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
log.go Adjust codespell config + make it fix few typos which sneaked in since addition of codespell support (#4857) 2024-08-08 16:07:35 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
name.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
search.go [Refactor] Unify repo search order by logic (#30876) 2024-06-16 13:42:58 +02:00
sequence.go Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
sql_postgres_with_schema.go Fix .golangci.yml (#22868) 2023-02-11 21:44:53 +00:00