-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EF Core SqlClient and App Insights #52
Comments
What you don't see? Which type of project? (is EF special project type?) |
EF is EntityFramework, used in Asp.Net Core 1.1 project. Dependency telemetry does not have SQL text. |
@MaximBalaganskiy What kind of telemetry are you expecting here? Are you contrasting the usecase with .Net Desktop? If yes, can you give me the steps to follow to get the SQL logging you are talking about? |
Here is the comment which got me here |
This seems to still not work with ASP.NET Core 2.0 and Entity Framework Core 2.0. The Azure Application Insights team points here (the link that @MaximBalaganskiy has posted). It would be great if someone could take on the issue and either solve it or make it very clear in the Application Insights documentation that this does not actually work for Core. |
I was just informed by @cijothomas that this works with Application Insights for .NET Core 2.2.0-beta1. (https://github.com/Microsoft/ApplicationInsights-aspnetcore/releases/tag/v2.2.0-beta1) |
Yes. If you .net core application is targeting the full .NET Framework, then sql calls should have been automatically monitored. |
As recently announced in the .NET Blog, focus on new SqlClient features an improvements is moving to the new Microsoft.Data.SqlClient package. For this reason, we are moving this issue to the new repo at https://github.com/dotnet/SqlClient. We will still use https://github.com/dotnet/corefx to track issues on other providers like System.Data.Odbc and System.Data.OleDB, and general ADO.NET and .NET data access issues. |
Can anyone confirm that this is fixed in .NET Core 2.2? |
#52 (comment) This is fixed. |
What can be the reason for not seeing raw SQL in EF app insights in net core project? Not locally nor in Azure.
I remember at some point with one of the RCs I saw SQL logged but not anymore.
Originally, I posted the question here dotnet/efcore#5510 but was referred to this repo.
The text was updated successfully, but these errors were encountered: