Skip to content

sqlite3 ModuleNotFoundError #1671

Answered by srikanthccv
changliu-wk asked this question in Q&A
Discussion options

You must be logged in to vote

My understanding is the agent thought we are using sqlite3, so it will call opentelemetry-instrumentation-sqlite3/init.py, but in fact we didn't use it.

There is a list of instrumentation libraries that get installed by default. And the remaining instrumentations are conditionally installed by auto instrumentation based on the available third-party libraries in your env for which we have the instrumentation (eg flask).

Is this a bug from otel Python auto-instrument?

The assumption was that sqlite3 would be available. It looks like, in some cases, the sqlite-devel must be installed. We could update the auto instrumentation to catch the import errors.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by changliu-wk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants