File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
lib/mysql/connector/opentelemetry Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 10
10
from .instrumentation import OTEL_SYSTEM_AVAILABLE
11
11
12
12
if OTEL_SYSTEM_AVAILABLE :
13
+ # pylint: disable=import-error
13
14
# load otel from the system
14
15
from opentelemetry import trace
15
16
from opentelemetry .trace .span import format_span_id , format_trace_id
Original file line number Diff line number Diff line change 47
47
try :
48
48
# falling back to the bundled installation
49
49
from mysql .opentelemetry import trace
50
- from mysql .opentelemetry .semconv .trace import ( # type: ignore[assignment]
51
- SpanAttributes ,
52
- )
50
+ from mysql .opentelemetry .semconv .trace import SpanAttributes
53
51
54
52
OTEL_SYSTEM_AVAILABLE = False
55
53
except ImportError as missing_dependencies_err :
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ output = 'build/coverage.xml'
99
99
100
100
[tool .pylint .master ]
101
101
load-plugins = [' pylint.extensions.overlapping_exceptions' ]
102
- ignore-paths = [' lib/mysqlx/protobuf/mysqlx_*' ]
102
+ ignore-paths = [' lib/mysqlx/protobuf/mysqlx_*' , ' lib/mysql/opentelemetry ' ]
103
103
init-hook = ' import sys; sys.path.append("lib")'
104
104
105
105
[tool .pylint .messages_control ]
You can’t perform that action at this time.
0 commit comments