Skip to content

Conversation

stephenh
Copy link
Contributor

@stephenh stephenh commented Mar 25, 2025

Based on @porsager 's query-stats branch with @abustany 's fixes (to manage the 2nd/3rd onquery instances on the query-level instead of global handler level iirc).

Disclaimers that:

  1. I did not add tests, and
  2. Currently the onquery accepts the Query instance as-is, which can be difficult for APM tools to look at "just give me the SQL string + params", so it might be worth passing in an API that is higher-level/easier-to-consume than the raw Query

Fixes #461.

@BramRoets
Copy link

FYI This PR doesn't seem to work for the cursor method. Not sure yet how to fix that.

@porsager porsager force-pushed the master branch 2 times, most recently from 4fd011e to a92f470 Compare May 20, 2025 23:40
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.

opentelemetry support or hooks?
2 participants