Skip to content
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

Dependency tracking in App Insights not working above version 3.1.3 on Azure Functions #22759

Closed
pcsikos opened this issue Sep 25, 2020 · 1 comment

Comments

@pcsikos
Copy link

pcsikos commented Sep 25, 2020

After upgrading Microsoft.EntityFrameworkCore dependency to 3.1.4 or higher on an Azure Function application, the SqlDependency tracking in Application Insights stopped working.

You can reproduce the issue in repo

After deploying the application to Azure(without EF), SQL dependencies in Application Insights are tracked as expected. (master branch from my repo)

However, after adding a Microsoft.EntityFrameworkCore reference to the project and nothing else is changed, the tracking stops working (efcore3-1-8 branch). After removing the reference tracking is working again. Any version above 3.1.3 used, does not have working sql dependency tracking. You can check the other scenarios in my repo as well.

I hope I provided enough information to reproduce the issue.

@ajcvickers
Copy link
Contributor

@pcsikos See dotnet/SqlClient#678

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

No branches or pull requests

2 participants