opentelemetry-python-contrib
opentelemetry-python-contrib copied to clipboard
Add NoOpTracerProvider test cases for sqllite3 instrumentation
Description
Adds NoOpTracerProvider test cases for sqllite3 instrumentation.
Fixes #964
How Has This Been Tested?
tox -e test-instrumentation-sqlite3
instrumentation/opentelemetry-instrumentation-sqlite3/tests/test_sqlite3.py::TestSQLite3::test_callproc PASSED [ 25%] instrumentation/opentelemetry-instrumentation-sqlite3/tests/test_sqlite3.py::TestSQLite3::test_execute PASSED [ 50%] instrumentation/opentelemetry-instrumentation-sqlite3/tests/test_sqlite3.py::TestSQLite3::test_executemany PASSED [ 75%] instrumentation/opentelemetry-instrumentation-sqlite3/tests/test_sqlite3.py::TestSQLite3::test_no_op_tracer_provider PASSED [100%]
Does This PR Require a Core Repo Change?
No.
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: Sunilwali679 (260ee1d51caad8a5018157f7e8c8ac22dd0a5efa, c78e4a3b153f21daaf9e338cf8aaa2455a5a5385, 8a37f52bf5c9368bc8f5b86dc6bf97d52625908e)
@Sunilwali679 you have to sign the CLA in order to contribute to this project, thanks
@xrmx could you please review the PR ? I have rebased and updated CLA
CI is failing. Could you please double-check it?
Is it me or test asserts have been removed?
CI is failing. Could you please double-check it?
Is it me or test asserts have been removed?
Yes. @Sunilwali679 I think here you should double-check the test implementation and assert 0 spans. Marking as a draft to avoid wrong merge.