You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest opentelemetry-dotnet, target net461 and use Microsoft.Data.SqlClient nuget package.
SQL activities are not captured.
EDIT: when submitting this issue I first incorrectly assumed the netfx Sql instrumentation relied on DiagnosticSource events, but that is not the case.
Microsoft.Data.SqlClient on netfx uses the WriteBeginExecuteEvent/WriteEndExecuteEvent methods that operate on the EventSource, similar to the System.Data.SqlClient on netfx.
The reason our instrumentation doesn't pick it up is because in Microsoft.Data.SqlClient this event source is named "Microsoft.Data.SqlClient.EventSource", but the instrumentation only listens to the "Microsoft-AdoNet-SystemData".
Note that we have tests for Microsoft.Data.SqlClient and when running against a docker instance of SQL Server on net461 they do actually fail.
Using latest opentelemetry-dotnet, target net461 and use Microsoft.Data.SqlClient nuget package.
SQL activities are not captured.
EDIT: when submitting this issue I first incorrectly assumed the netfx Sql instrumentation relied on DiagnosticSource events, but that is not the case.
Microsoft.Data.SqlClient
on netfx uses theWriteBeginExecuteEvent
/WriteEndExecuteEvent
methods that operate on theEventSource
, similar to theSystem.Data.SqlClient
on netfx.The reason our instrumentation doesn't pick it up is because in
Microsoft.Data.SqlClient
this event source is named "Microsoft.Data.SqlClient.EventSource", but the instrumentation only listens to the "Microsoft-AdoNet-SystemData".Note that we have tests for
Microsoft.Data.SqlClient
and when running against a docker instance of SQL Server on net461 they do actually fail.cc @CodeBlanch
The text was updated successfully, but these errors were encountered: