DataDog / dd-trace-dotnet

.NET Client Library for Datadog APM
https://docs.datadoghq.com/tracing/
Apache License 2.0
443 stars 138 forks source link

Sql Server spans missing between 1.11.0 and 1.16.2 #722

Closed jesanfafon closed 4 years ago

jesanfafon commented 4 years ago

Describe the bug We have an ASP.NET app with many legacy components. SQL queries made from the Microsoft.Practices.EnterpriseLibrary.Data library are not traced in 1.14.2 and later. I believe the reason for this is the same reasons discussed in #688 . However, adding the DD_TRACE_DOMAIN_NEUTRAL_INSTRUMENTATION environment variable didn't restore the spans in our traces, so I wonder if there's something else going on here.

To Reproduce Steps to reproduce the behavior:

  1. Install Microsoft.Practices.EnterpriseLibrary.Data and make a query
  2. Observe the sql query is not traced.

Expected behavior Queries going to sql server should be traced regardless of the library making the ADO.NET calls

Runtime environment (please complete the following information):

Additional context We're weighing the option of rewriting the code we have using the EPL to use plain ADO.NET instead, since the degree of change to do that is relatively minor. I wanted to file this bug, though, so that you guys know about it 😄

zacharycmontoya commented 4 years ago

Hi @jesanfafon , thanks for reporting this. We've just released version 1.18.0 which should address this issue. Can you upgrade to this version and let us know if you're still seeing this issue?

jesanfafon commented 4 years ago

Hi @zacharycmontoya 1.18.0 fixes the issue for us! Thank you very much!