ApplicationInsights-Java icon indicating copy to clipboard operation
ApplicationInsights-Java copied to clipboard

Add support for postgres R2DBC in the java agent

Open petergphillips opened this issue 2 years ago • 1 comments

We've looking at switching from using JDBC to using a completely reactive stack and using R2DBC with postgres instead.

Using JDBC we had all of the database calls logged as dependencies. This no longer happens when using R2DBC.

It looks like you might support mongo R2DBC (according to https://docs.microsoft.com/en-us/azure/azure-monitor/app/java-in-process-agent#autocollected-dependencies) already, but can't see any support for other flavours.

Please could you therefore consider supporting R2DBC using postgres. I can see our requests come through so you currently support netty and webflux, so would be good to add support for the whole stack.

petergphillips avatar Feb 11 '22 10:02 petergphillips

This is tracked at https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/2515, we will pull into Application Insights once it is available upstream

trask avatar Jul 11 '22 04:07 trask

Instrumentation for r2dbc has just been added upstream in https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/2515

trask avatar Mar 29 '23 03:03 trask

Preview instrumentation for r2dbc is now available in the latest Application Insights Java version: https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#preview-instrumentations

trask avatar Sep 13 '23 03:09 trask