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.63k stars 2.84k forks source link

Add auto-instrumentation for asyncpg for configure_azure_monitor #36583

Open pamelafox opened 3 months ago

pamelafox commented 3 months 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 3 months ago

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

pamelafox commented 3 months ago

This request is for azure-monitor-opentelemetry

swathipil commented 3 months ago

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

lzchen commented 3 months 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.