-
Notifications
You must be signed in to change notification settings - Fork 292
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
[SqlClient] Broken on .NET Framework? #1739
Comments
Just discovered the same issue. Windows 11 Pro (22621.819), .NET 4.8.1 (533320) Quick test app Running dependencies (SQL Server on Linux Docker container) |
Update for anyone interested: It looks like this broke with the release of .NET 4.8.1. It should work in all prior versions but I haven't had a chance to verify yet. |
@CodeBlanch Is this bug reported so that it will be eventually fixed in .NET 4.8.1 patch release? Is there any issue that we can track? |
@pellared we are currently what is the best action to take here. We'll update you when we have more news. it is kind slow these days because of the holidays :-) CC @ajcvickers |
Note that regardless of the holidays, getting a change into .NET Framework is a long process. Expect months. |
The issue was also reported here: open-telemetry/opentelemetry-dotnet-instrumentation#2177 |
Just a note, but this is a pretty major blocker for us being able to adopt OTel within our large enterprise application. I hope it can be prioritized as such. |
This was originally assumed to be broken only on .NET FW 4.8.1, but it looks like even Net462 is broken? |
Note, the .NET Framework installs one version on the machine which supports multiple targets. So, most likely the installed version is |
Has anyone been able to find a workaround for this? It's odd because this issue is only happening to my machine on our team. I went so far as to reformat and still encounter the issue. But I suspect that's just due to the fact that I had the latest version of .Net both times. |
@ajcvickers you were the one looking at fixing this issue. Is there any update here? |
So, if I have a .net framework webapp it doesn't generate the Trace for the sql client connections, is that? |
Is this a case to use @ErikEJ Entity Framework 6 SQL Server provider based on Microsoft.Data.SqlClient? https://github.com/ErikEJ/EntityFramework6PowerTools UPDATE |
i've also run into this issue generating Entity Framework storedproc and the call to |
Update: The .NET Framework team is working on a fix and it should be available in the next month or two. I'll post more details when we have a more concrete date. |
Happy to report that this will be fixed in the next .NET Framework Cumulative Update: https://devblogs.microsoft.com/dotnet/dotnet-framework-september-2023-cumulative-update-preview/#sqlclient |
@CodeBlanch, I think we can close this bug. I tested it here: open-telemetry/opentelemetry-dotnet-instrumentation#3412 |
I noticed working on open-telemetry/opentelemetry-dotnet#3900 that the .NET Framework integration test is failing.
On .NET Framework Sql instrumentation listens to
SqlEventSource
which uses keywords.When
SqlCommand
s are executing theEventSource
code is writing this error instead of behaving normally (firingBeginExecute
\EndExecute
):Working with @tarekgh it seems the nested
public static class Keywords
is not present in the final code. We suspect some kind of trimming issue. Waiting to hear back from some other folks.Not sure when this started. We don't run the .NET Framework integration tests in our CI. But as far as I can tell, instrumentation is broken on .NET Framework. Could be only certain versions or OSes are impacted. I'm running 4.8.09032 on Windows 11.
The text was updated successfully, but these errors were encountered: