Your data. Anywhere you go.

New Relic for iOS or Android

Download on the App Store    Android App on Google play

New Relic Insights App for iOS

Download on the App Store

Learn more

Close icon

.NET Agent does not trace database nor Npgsql driver (Postgres)



I run web application on platform

  • .NET Core 2.1.302
  • Windows 10
  • .NET Agent v8.9.130.0

with following packages:

  • Microsoft.EntityFrameworkCore 2.1.4
  • Npgsql .EntityFrameworkCore.PostgresSQL 2.1.2
  • Npgsql 4.0.3

I have to problems

  1. I don’t see any database calls at all.
  2. Npgsql assembly is not traced enough. I see only Npgsql.Connection.Open method is being traced (see image attached)

What I expect:

  1. See database queries and commands
  2. Tracing Npgsql more detailed


This might be an issue of driver version. Per the docs we only support Npgsql version 3.2.4

That said, are you seeing anything in the Databases tab? I’m wondering if this is just a transaction trace not capturing it.


I see Database tab, but empty list with message

New Relic recorded no data for this report. If you think this is an error, please [contact our support team]


Can you create a test environment with Npgsql version 3.2.4 installed, to test if its a supportability issue or if there is anything more going on