Replies: 3 comments 3 replies
-
Thank you for your inquiry about NetEventSource. We'll get back to you when we have a definitive answer. |
Beta Was this translation helpful? Give feedback.
-
We reviewed the NetEventSource and there does not appear to be any EventSource attribute to any of its partial class at this time. At this point, you can continue using the Microsoft.Data.SqlClient.EventSource while using the ManagedSNI via AppContext switch, AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows", true); , and set the log level or keyword appropriately. Please refer to https://learn.microsoft.com/en-us/sql/connect/ado-net/enable-eventsource-tracing?view=sql-server-ver16. However, you may also want to use Wireshark to capture and display real-time details of network traffic. |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, there is no way to get those events right now. Is there any plan to add an event source so that we can better investigate ?
Unfortunately, all our applications are running on Linux servers, so it looks like it won't make it...
Not easy to setup as the error we are facing is transient and happens only once or twice a day... Anyway, thanks for your quick reply |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm trying to debug a kerberos authnetication issue in production, I already got a trace of what's happening on SQL client library by listening to
Microsoft.Data.SqlClient
event source, but I would like to go one step further by getting events from the authentication phase. I could find some interesting events defined in https://github.com/dotnet/SqlClient/blob/main/src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Logging/NetEventSource.Common.cs#L51 but there is no EventSource annotation on top of the class definition, so I have no idea which Event Source I should listen to, to get those events in my trace file.Could you help me on that topic please ?
Regards
Beta Was this translation helpful? Give feedback.
All reactions