From 0b2340b6fbc9d553922bd8601b5fc4813f0c83b0 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Fri, 15 Nov 2024 17:30:19 -0800 Subject: [PATCH] Rename var --- .../src/opentelemetry/instrumentation/mysql/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql/__init__.py b/instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql/__init__.py index 23d990fc84..4d1c064cec 100644 --- a/instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql/__init__.py @@ -356,7 +356,7 @@ def __exit__(self, *args, **kwargs): def _new_cursor_factory( db_api: DatabaseApiIntegration = None, - base_factory: CMySQLCursor = None, + cursor_factory: CMySQLCursor = None, tracer_provider: trace_api.TracerProvider = None, enable_commenter: bool = False, ): @@ -370,13 +370,13 @@ def _new_cursor_factory( ) # Latter is base class for all mysql-connector cursors - base_factory = base_factory or CMySQLCursor + cursor_factory = cursor_factory or CMySQLCursor _cursor_tracer = CursorTracer( db_api, enable_commenter, ) - class TracedCursorFactory(base_factory): + class TracedCursorFactory(cursor_factory): def execute(self, *args, **kwargs): return _cursor_tracer.traced_execution( self, super().execute, *args, **kwargs