Commit 00cb3ff
authored
database_observability: cache pg sample and wait events before sending finalised entries (#4523)
* draft cache
* tests
* cover more scenarios with tests
* refactor samples code
* further reorganize code
* lint fix
* changelog
* reword changelog
* do not round wait times, filter rows to only client backend type
* removing backend_time from samples, adding pid and xids to the wait events for easier matching
* Revert "do not round wait times, filter rows to only client backend type"
This reverts commit d908305.
* round time to nanoseconds
* address review comments
* remove redundant comments
* add back state field to samples1 parent 4595b07 commit 00cb3ff
File tree
3 files changed
+828
-125
lines changed- internal/component/database_observability/postgres/collector
3 files changed
+828
-125
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments