dotnet / SqlClient

Microsoft.Data.SqlClient provides database connectivity to SQL Server for .NET applications.
MIT License
817 stars 271 forks source link

Which event source should I listen to get authentication events ? #2604

Closed jpdurot closed 1 week ago

jpdurot commented 1 week ago

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

arellegue commented 1 week ago

Thank you for your inquiry about NetEventSource. We'll get back to you when we have a definitive answer.