PostgreSQL Instrumentation
Installation
The installation instructions differ based on the PostgreSQL adapter package you are using:
Using aiopg
When using the aiopg
PostgreSQL adapter package, install the opentelemetry-instrumentation-aiopg
package. To add it to your project, add the following line to your requirements.txt
file:
# requirements.txt opentelemetry-instrumentation-aiopg
Using asyncpg
When using the asyncpg
PostgreSQL adapter package, install the opentelemetry-instrumentation-asyncpg
package. To add it to your project, add the following line to your requirements.txt
file:
# requirements.txt opentelemetry-instrumentation-asyncpg
Using psycopg2
When using the psycopg2
PostgreSQL adapter package, install the opentelemetry-instrumentation-psycopg2
package. To add it to your project, add the following line to your requirements.txt
file:
# requirements.txt opentelemetry-instrumentation-psycopg2
Using psycopg
When using the psycopg
(version 3) PostgreSQL adapter package, install the opentelemetry-instrumentation-psycopg
package. To add it to your project, add the following line to your requirements.txt
file:
# requirements.txt opentelemetry-instrumentation-psycopg