Skip to content

[chore][postgresqlreceiver] do not report record if the total exec time is not changed #39942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 20, 2025
3 changes: 3 additions & 0 deletions receiver/postgresqlreceiver/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ func (p *postgreSQLScraper) collectTopQuery(ctx context.Context, dbClient client
row[dbAttributePrefix+columnName] = finalValue
}
}
if row[dbAttributePrefix+totalExecTimeColumnName] == 0.0 {
continue
}
item := Item{
row: row,
priority: row[dbAttributePrefix+totalExecTimeColumnName].(float64),
Expand Down
Loading