Skip to content

Commit 00cb3ff

Browse files
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 samples
1 parent 4595b07 commit 00cb3ff

File tree

3 files changed

+828
-125
lines changed

3 files changed

+828
-125
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Main (unreleased)
2525
- (_Experimental_) Additions to experimental `database_observability.postgres` component:
2626
- `explain_plans` added the explain plan collector (@rgeyer)
2727
- add `user` field to wait events within `query_samples` collector (@gaantunes)
28+
- rework the query samples collector to buffer per-query execution state across scrapes and emit finalized entries (@gaantunes)
2829

2930
- Add `otelcol.exporter.googlecloudpubsub` community component to export metrics, traces, and logs to Google Cloud Pub/Sub topic. (@eraac)
3031

0 commit comments

Comments
 (0)