-
Notifications
You must be signed in to change notification settings - Fork 537
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
[WIP]: SQLAlchemy & psycopg2 Flask Integration #1138
[WIP]: SQLAlchemy & psycopg2 Flask Integration #1138
Conversation
@Thiyagu55 this is probably not the best way to go about it. We can't do this for all instrumentation. Maybe we should make use of the context? The sqlcommenter will the read the request meta from the current context and frameworks can independently set meta in context. |
…to sqlalchemy-flash-integration
@srikanthccv Updated the code so that the interchange takes place via context. Could you verify? |
@Thiyagu55 I would like to see what other approvers/maintainers think of this approach first and see if they have any other ideas. |
Sure |
@srikanthccv Can you tag other reviewers for their opinion on this approach? |
@Thiyagu55 Sorry, haven't been able to bring this up in SIG because some approver/maintainers were OOO. Would you be able to join SIG meeting this week? |
@sjs994 FYA |
@srikanthccv Subhrajyoti and me will join the meeting tonight |
SQLAlchemy & Psycopg2 SQLCommenter support for Flask related metrics
Support for using flask related metrics in sqlalchemy & psycopg2 SQL commenter.
This can be achieved by enabling enable_commenter flag inside Flask instrument initialization and also in SQLAlchemy Instrumentation or psycopg2 instrumentation
@srikanthccv Need your suggestions for this draft PR so we could implement in full scale
Type of change
How Has This Been Tested?
Tests needs to be added upon approval of this solution
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.