Skip to content

Commit 0b2340b

Browse files
Rename var
1 parent ca2b884 commit 0b2340b

File tree

1 file changed

+3
-3
lines changed
  • instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql

1 file changed

+3
-3
lines changed

instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ def __exit__(self, *args, **kwargs):
356356

357357
def _new_cursor_factory(
358358
db_api: DatabaseApiIntegration = None,
359-
base_factory: CMySQLCursor = None,
359+
cursor_factory: CMySQLCursor = None,
360360
tracer_provider: trace_api.TracerProvider = None,
361361
enable_commenter: bool = False,
362362
):
@@ -370,13 +370,13 @@ def _new_cursor_factory(
370370
)
371371

372372
# Latter is base class for all mysql-connector cursors
373-
base_factory = base_factory or CMySQLCursor
373+
cursor_factory = cursor_factory or CMySQLCursor
374374
_cursor_tracer = CursorTracer(
375375
db_api,
376376
enable_commenter,
377377
)
378378

379-
class TracedCursorFactory(base_factory):
379+
class TracedCursorFactory(cursor_factory):
380380
def execute(self, *args, **kwargs):
381381
return _cursor_tracer.traced_execution(
382382
self, super().execute, *args, **kwargs

0 commit comments

Comments
 (0)