Closed jacob-m-nielsen closed 3 years ago
Hello,
I've tried running your code but it works fine for me, with and without transaction: https://gist.github.com/kevingosse/7cdfbdf242cfd776225448f11b68eb10
What version of Microsoft.Data.SqlClient
are you using? Please keep in mind that we don't support 3.0.0 yet.
We are indeed using v3.0.0, so that clarifies the problem. Do you have an idea on when 3.0.0 will be supported?
I'll try to squeeze that in the next release or the one after, so expect it in the coming weeks.
Version 1.28.0 has been released, and includes support of Microsoft.Data.SqlClient 3.*.
Describe the bug According to https://github.com/DataDog/dd-trace-dotnet/releases/tag/v1.21.0 support was added for automatic instrumentation of
Microsoft.Data.SqlClient.SqlCommand
.This works as expected as long as the
SqlCommand
is not inside aMicrosoft.Data.SqlClient.SqlTransaction
. AnySqlCommand
's in aSqlTransaction
do not have traces.To Reproduce Steps to reproduce the behavior:
Microsoft.Data.SqlClient
andDatadog.Trace
NuGet packagesExpected behavior The query is expected to be visible in the corresponding APM trace
Runtime environment (please complete the following information):
Additional context Oskar Rittsél asked me to create this ticket.