zitadel/internal/database
Tim Möhlmann 093dd57a78
fix(db): wrap BeginTx in spans to get acquire metrics (#7689)
feat(db): wrap BeginTx in spans to get acquire metrics

This changes adds a span around most db.BeginTx calls so we can get tracings about the connection pool acquire process.
This might help us pinpoint why sometimes some query package traces show longer execution times, while this was not reflected on database side execution times.

Co-authored-by: Silvan <silvan.reusser@gmail.com>
2024-04-03 11:48:24 +03:00
..
cockroach chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
dialect fix(db): add additional connection pool for projection spooling (#7094) 2023-12-20 16:13:04 +00:00
migrate feat(cli): init cli (#3186) 2022-02-09 15:01:19 +01:00
mock chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
postgres chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
database_test.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
database.go fix(db): wrap BeginTx in spans to get acquire metrics (#7689) 2024-04-03 11:48:24 +03:00
type_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
type.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00