Metadata-Version: 2.4
Name: otlp-psqlpy
Version: 0.2.1
Summary: 
License: LICENSE
License-File: LICENSE
Keywords: psqlpy,postgres,async
Author: chandr-andr (Kiselev Aleksandr)
Author-email: chandr@chandr.net
Requires-Python: >=3.9,<4.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: System :: Networking
Classifier: Typing :: Typed
Requires-Dist: opentelemetry-exporter-otlp (>=1.30.0,<2.0.0)
Requires-Dist: opentelemetry-instrumentation (>=0.51b0,<1)
Requires-Dist: opentelemetry-sdk (>=1.30.0,<2.0.0)
Requires-Dist: psqlpy (==0.11.6)
Project-URL: Documentation, https://psqlpy-python.github.io/
Project-URL: Homepage, https://github.com/psqlpy-python
Project-URL: Repository, https://github.com/psqlpy-python/otlp-psqlpy
Description-Content-Type: text/markdown

# OTLP-PSQLPy

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

## Usage

```python
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")
```

