Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

telemetry: Add support for psycopg instrumentation #39060

Open
mick88 opened this issue Jan 7, 2025 · 2 comments
Open

telemetry: Add support for psycopg instrumentation #39060

mick88 opened this issue Jan 7, 2025 · 2 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor - Distro Monitor OpenTelemetry Distro needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@mick88
Copy link

mick88 commented Jan 7, 2025

As OpenCensus is now deprecated, we're migrating our Python project to OpenTelemetry following the advice on Microsoft website.

https://pypi.org/project/azure-monitor-opentelemetry/ lists supported instrumentations, among them is psycopg2.
However, the newer version psycopg 3 is not listed.

The instrumentation package for psycopg 3: opentelemetry-instrumentation-psycopg

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 7, 2025
@xiangyan99 xiangyan99 added Service Attention Workflow: This issue is responsible by Azure service team. Monitor - Distro Monitor OpenTelemetry Distro and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jan 7, 2025
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jan 7, 2025
Copy link

github-actions bot commented Jan 7, 2025

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jeremydvoss @lzchen.

@lzchen
Copy link
Member

lzchen commented Jan 9, 2025

Yes psycopg3 is not listed as an automatically included instrumentation but you can always manually instrument with the instrumentation alongside the distro and you should see your telemetry flowing to appinsights. See this example for an example of how to use a instrumentation manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Monitor - Distro Monitor OpenTelemetry Distro needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants