Skip to content

Commit

Permalink
Cursor moved from cursor.py to connection.py
Browse files Browse the repository at this point in the history
  • Loading branch information
basepi committed Jun 30, 2021
1 parent 5b8c341 commit 4942b4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion elasticapm/instrumentation/packages/asyncio/aiopg.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
class AioPGInstrumentation(AsyncAbstractInstrumentedModule):
name = "aiopg"

instrument_list = [("aiopg.cursor", "Cursor.execute"), ("aiopg.cursor", "Cursor.callproc")]
instrument_list = [
("aiopg.cursor", "Cursor.execute"),
("aiopg.cursor", "Cursor.callproc"),
("aiopg.connection", "Cursor.execute"),
("aiopg.connection", "Cursor.callproc"),
]

async def call(self, module, method, wrapped, instance, args, kwargs):
if method == "Cursor.execute":
Expand Down

0 comments on commit 4942b4a

Please sign in to comment.