# 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")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/psqlpy-python",
"name": "otlp-psqlpy",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "psqlpy, postgres, async",
"author": "chandr-andr (Kiselev Aleksandr)",
"author_email": "chandr@chandr.net",
"download_url": "https://files.pythonhosted.org/packages/5f/6f/2a83797d3e67a34b8b365a9602df6091e0b2011bc175db93385d65b0c4fb/otlp_psqlpy-0.1.2.tar.gz",
"platform": null,
"description": "# OTLP-PSQLPy\n\nThis library allows tracing PostgreSQL queries made by the psqlpy library.\n\n## Usage\n\n```python\nimport psqlpy\nfrom otlp_psqlpy import PSQLPyPGInstrumentor\n\n# You can optionally pass a custom TracerProvider to PSQLPyPGInstrumentor.instrument()\nPSQLPyPGInstrumentor().instrument()\n\nasync def main():\n pool = psqlpy.ConnectionPool()\n conn = await pool.connection()\n\n await conn.execute(\"SELECT * FROM psqlpy\")\n```\n",
"bugtrack_url": null,
"license": "LICENSE",
"summary": null,
"version": "0.1.2",
"project_urls": {
"Documentation": "https://psqlpy-python.github.io/",
"Homepage": "https://github.com/psqlpy-python",
"Repository": "https://github.com/psqlpy-python/otlp-psqlpy"
},
"split_keywords": [
"psqlpy",
" postgres",
" async"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "84880241367111bd0cae3191044ef848de3ac42da63738c07d6b30f381e716d8",
"md5": "4e71dcf52dbd1eb244fdc3eaf71ea762",
"sha256": "1733190747d16148a872fe3aceeb006396f9302fb40148b2d28ca9f9ec36fee7"
},
"downloads": -1,
"filename": "otlp_psqlpy-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4e71dcf52dbd1eb244fdc3eaf71ea762",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 5713,
"upload_time": "2025-02-09T14:32:52",
"upload_time_iso_8601": "2025-02-09T14:32:52.663127Z",
"url": "https://files.pythonhosted.org/packages/84/88/0241367111bd0cae3191044ef848de3ac42da63738c07d6b30f381e716d8/otlp_psqlpy-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5f6f2a83797d3e67a34b8b365a9602df6091e0b2011bc175db93385d65b0c4fb",
"md5": "4edd250d7e905aff64ca2ca6711c1b8b",
"sha256": "36733deb9c4399d7c0ec4ba6f3ec1178a453a5afad0eee6d48318671fe85f46a"
},
"downloads": -1,
"filename": "otlp_psqlpy-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "4edd250d7e905aff64ca2ca6711c1b8b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 5285,
"upload_time": "2025-02-09T14:32:53",
"upload_time_iso_8601": "2025-02-09T14:32:53.622037Z",
"url": "https://files.pythonhosted.org/packages/5f/6f/2a83797d3e67a34b8b365a9602df6091e0b2011bc175db93385d65b0c4fb/otlp_psqlpy-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-09 14:32:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "psqlpy-python",
"github_project": "otlp-psqlpy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "otlp-psqlpy"
}