Skip to content

feat(database_observability.postgres): Add adaptive burst window mechanism to query_samples collector#5196

Open
gaantunes wants to merge 7 commits intomainfrom
feature/db-o11y-burst
Open

feat(database_observability.postgres): Add adaptive burst window mechanism to query_samples collector#5196
gaantunes wants to merge 7 commits intomainfrom
feature/db-o11y-burst

Conversation

@gaantunes
Copy link
Copy Markdown
Contributor

@gaantunes gaantunes commented Jan 7, 2026

Brief description of Pull Request

Pull Request Details

This burst mechanism is designed to capture the active query execution span and wait events more precisely. Whenever we detect an active row, a scrape burst window is opened. The goal is to try to capture the moment when the execution ends as precisely as possible.

The query was changed for improved performance, as pg_stat_activity is very lightweight (all data is kept by Postgres in memory), but pg_blocking_pids can add some overhead. We will only call the second if there are any Lock wait types in first scrape.

Issue(s) fixed by this Pull Request

Notes to the Reviewer

PR Checklist

  • Documentation added
  • Tests updated
  • Config converters updated

@gaantunes gaantunes requested a review from a team as a code owner January 7, 2026 19:16
@gaantunes gaantunes changed the title feat: Add adaptive burst window mechanism to database_observability.postgres query_samples collector featdatabase_observability.postgres: Add adaptive burst window mechanism to query_samples collector Feb 20, 2026
@gaantunes gaantunes force-pushed the feature/db-o11y-burst branch from d40ab21 to 809d807 Compare February 20, 2026 20:31
@gaantunes gaantunes changed the title featdatabase_observability.postgres: Add adaptive burst window mechanism to query_samples collector feat(database_observability.postgres): Add adaptive burst window mechanism to query_samples collector Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant