instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py::TestMySQLClientIntegration::test_instrumentor
/Users/tammy/opentelemetry-python-contrib/.tox/py312-test-instrumentation-mysqlclient/lib/python3.12/site-packages/opentelemetry/test/test_base.py:74: DeprecationWarning: Call to deprecated function (or staticmethod) instrumentation_info. (You should use instrumentation_scope) -- Deprecated since version 1.11.1.
self.assertEqual(span.instrumentation_info.name, module.__name__)
instrumentation/opentelemetry-instrumentation-mysqlclient/tests/test_mysqlclient_integration.py::TestMySQLClientIntegration::test_instrumentor
/Users/tammy/opentelemetry-python-contrib/.tox/py312-test-instrumentation-mysqlclient/lib/python3.12/site-packages/opentelemetry/test/test_base.py:75: DeprecationWarning: Call to deprecated function (or staticmethod) instrumentation_info. (You should use instrumentation_scope) -- Deprecated since version 1.11.1.
self.assertEqual(span.instrumentation_info.version, module.__version__)
Describe your environment
OS: Ubuntu Python version: Python 3.12.5 Package version: 0.50b0.dev (local) SDK version: 1.29.0.dev (local) API version: 1.29.0.dev (local)
What happened?
Several instrumentor tests are using core util assertEqualSpanInstrumentationInfo and this results in deprecation warnings, e.g.
I think they should all switch to using assertEqualSpanInstrumentationScope.
Steps to Reproduce
assertEqualSpanInstrumentationInfo
, e.g.tox -e py312-test-instrumentation-mysqlclient
.Expected Result
No Deprecation warnings.
Actual Result
DeprecationWarning as described above.
Additional context
No response
Would you like to implement a fix?
Yes