Sitelet https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/1263
Skip to content
This repository was archived by the owner on Jul 5, 2020. It is now read-only.
This repository was archived by the owner on Jul 5, 2020. It is now read-only.

System.Data.SqlClient replaced with Microsoft.Data.SqlClient in .NET CORE 3.0 and sql calls are not tracked in 3.0 #1263

Description

EF for .NET Core 3.0 replaces System.Data.SqlClient with Microsoft.Data.SqlClient.
https://devblogs.microsoft.com/dotnet/introducing-the-new-microsoftdatasqlclient/

The new Microsoft.Data.SqlClient publishes the same diagnosticsource events as System.Data.SqlClient, but with the prefix of the individual events replaced with "Microsoft.Data.SqlClient" (https://github.com/dotnet/SqlClient/blob/654933a0811ab30b843a20aff051b8d585238505/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientDiagnosticListenerExtensions.cs), as opposed to "System.Data.SqlClient" (https://github.com/dotnet/corefx/blob/master/src/System.Data.SqlClient/src/System/Data/SqlClient/SqlClientDiagnosticListenerExtensions.cs)

ApplicationInsights dependency collector needs to listen to new events to monitor SQL Calls using the Microsoft.Data.SqlClient,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions