question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ADO.NET traces missing after upgrade from 1.7 -> 1.10

See original GitHub issue

Describe the bug After upgrading from Trace Agent 1.7 to 1.10(removing the Datadog.Trace.ClrProfiler.Managed package in the process), we’ve stopped receiving Trace data for postgres/npgsql(via Dapper). Sql Server traces are still coming through for other full framework applications on the same server. Debug logging shows the below, but never shows the “Replaced calls” message that we’d expect for the instrumented method:

[w3wp.exe] 6288: [debug] JITCompilationStarted: function_id=140705392839240 token=100668737 name=System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader()

By comparison, 1.7 shows the following:

[w3wp.exe] 3372: [info] *** JITCompilationStarted() replaced calls from System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() to System.Data.Common.DbCommand.ExecuteDbDataReader() 100668732 with calls to Datadog.Trace.ClrProfiler.Integrations.AdoNetIntegration.ExecuteDbDataReader() 167773671
[w3wp.exe] 3372: [info] *** JITCompilationStarted() replaced calls from System.Data.Common.DbCommand.ExecuteReaderAsync() to System.Data.Common.DbCommand.ExecuteDbDataReaderAsync() 100668744 with calls to Datadog.Trace.ClrProfiler.Integrations.AdoNetIntegration.ExecuteDbDataReaderAsync() 167773672

Expected behavior Npgsql calls via Dapper are instrumented.

Runtime environment (please complete the following information):

  • Instrumentation mode: Have tried both automatic and with the NuGet package
  • Tracer version: 1.10.0
  • OS: Windows Server 2012 R2
  • CLR: .NET Core 2.2

Additional context

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
bobuvacommented, Feb 21, 2020

@bretkoppel @gshackles @fehmianac @NickAdolf @AndreyMarchuk We have produced a Pre-Release version 1.13.3-prerelease that addresses postgres instrumentation through Dapper. Would you be willing to download it and try it out? cc: @lucaspimentel

0reactions
lucaspimentelcommented, Mar 10, 2020

@bretkoppel: We released version 1.14.0 which includes the changes you tested in prerelease version above. We can now move on to #661!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Datadog.Trace 2.4.2
If you find ADO.NET spans are missing from your traces after upgrading, please raise an issue on GitHub, or contact support.
Read more >
Azure PowerShell release notes
Learn about all of the latest updates to the Azure PowerShell modules. ... Fixed an issue where location header was missing in the...
Read more >
1. Connecting to Data - ADO.NET 3.5 Cookbook, 2nd ...
NET Framework. ADO.NET has both connected and disconnected classes. The connected classes let you retrieve and update data in underlying data sources.
Read more >
AOS-W 6.5.1.10 Release Notes
x to AOS-W 5.0, the upgrade script encrypts the internal database. New entries created in AOS-W 6.5.1.10 are lost after the downgrade (this...
Read more >
Change Log for Plesk Obsidian
Find out about changes, additions and updates to Plesk Obsidian on an iteration to iteration basis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found