Skip to content

Commit

Permalink
ext/{dbapi,pymysql}: Implement methods to (un)-instrument connections (
Browse files Browse the repository at this point in the history
…#624)

Implement to helper methods to allow users to enable / disable instrumentation
in a single connection object.

The current integrations based on dbapi allow to patch the connect function on those libraries to return an instrumented connection, however it's not possible to enable instrumentation on a connection previously created or to disable instrumentation in an instrumented connection.

This only implements the logic in PyMySQL, it can be easily done in other instrumentations once we think it's worth to be done.

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Yusuke Tsutsumi <yusuke@tsutsumi.io>
  • Loading branch information
3 people committed May 9, 2020
1 parent 0ffd71e commit f15230b
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f15230b

Please sign in to comment.