Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.53k stars 2.76k forks source link

Add auto-instrumentation for asyncpg for configure_azure_monitor #36583

Open pamelafox opened 1 month ago

pamelafox commented 1 month ago

Since the auto-instrumentation already works for FastAPI and psycopg2, developers might be surprised to see that asyncpg is not supported. It'd be great if it was, since FastAPI + asyncpg will likely be an increasingly common combo, especially once SQLModel supports async. I am currently using it via SQLAlchemy's async support.

swathipil commented 1 month ago

Hi @pamelafox - Is there a specific package you're referring to?

pamelafox commented 1 month ago

This request is for azure-monitor-opentelemetry

swathipil commented 1 month ago

Hi @lzchen - would you be able to take a look?

lzchen commented 1 month ago

@swathipil

Yes @pamelafox and I have discussed offline. This is simply a feature request but we do not have the bandwidth currently to work on this.