Skip to content

This library allows tracing PostgreSQL queries made by the psqlpy library.

License

Notifications You must be signed in to change notification settings

psqlpy-python/otlp-psqlpy

Repository files navigation

OTLP-PSQLPy

This library allows tracing PostgreSQL queries made by the psqlpy library.

Usage

import psqlpy
from otlp_psqlpy import PSQLPyPGInstrumentor

# You can optionally pass a custom TracerProvider to PSQLPyPGInstrumentor.instrument()
PSQLPyPGInstrumentor().instrument()

async def main():
    pool = psqlpy.ConnectionPool()
    conn = await pool.connection()

    await conn.execute("SELECT * FROM psqlpy")

About

This library allows tracing PostgreSQL queries made by the psqlpy library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages