zitadel/internal/eventstore
Tim Möhlmann 7ef95c9194
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>
(cherry picked from commit 093dd57a78)
2024-04-09 14:03:03 +02:00
..
handler fix(db): wrap BeginTx in spans to get acquire metrics (#7689) 2024-04-09 14:03:03 +02:00
repository chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
v1/models refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
v3 fix(db): wrap BeginTx in spans to get acquire metrics (#7689) 2024-04-09 14:03:03 +02:00
aggregate.go feat: restrict languages (#6931) 2023-12-05 11:12:01 +00:00
asset.go fix(eventstore): sub queries (#1805) 2021-07-06 13:55:57 +02:00
bench_payload.txt feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
config.go fix(eventstore): retry push on primary key sequence collision (#7420) 2024-02-23 08:29:10 +00:00
event_base.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_querier_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
eventstore.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
example_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
local_crdb_test.go chore(core): update dependencies (#7517) 2024-03-11 10:43:56 +00:00
read_model.go feat(api): feature flags (#7356) 2024-02-28 10:55:54 +02:00
search_query_test.go fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
search_query.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
subscription.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraint.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00