Skip to content
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

feat: Add onquery callback. #1051

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenh
Copy link

@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.

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?
1 participant