Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

charleskorn
Copy link
Contributor

When a panic occurs during query evaluation, runtime panic in parser is logged. However this is misleading: there's no guarantee the issue occurred in the parser, and the panic could have occurred in other stages of query evaluation.

This PR makes the message more generic.

@beorn7 beorn7 merged commit c2bc6cf into prometheus:main Aug 13, 2024
@bboreham bboreham changed the title promql: clarify error message logged when panic occurs during query evaluation promql: clarify error message logged when Go runtime panic occurs during query evaluation Sep 17, 2024
@bboreham
Copy link
Member

Note it's only Go runtime panics that are impacted here.
Most PromQL errors are reported via panic, and take one of the other branches in the switch.

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.

3 participants