<PackageReference Include="Microsoft.Data.SqlClient.Internal.Logging" Version="7.1.0-preview2.26190.5" />

Microsoft.Data.SqlClient.Internal.SqlClientEventSource

ETW EventSource for Microsoft.Data.SqlClient tracing and diagnostics.
namespace Microsoft.Data.SqlClient.Internal { public class SqlClientEventSource : EventSource { public class Keywords { public const EventKeywords ExecutionTrace = (EventKeywords)1; public const EventKeywords Trace = (EventKeywords)2; public const EventKeywords Scope = (EventKeywords)4; public const EventKeywords NotificationTrace = (EventKeywords)8; public const EventKeywords NotificationScope = (EventKeywords)16; public const EventKeywords PoolerTrace = (EventKeywords)32; public const EventKeywords PoolerScope = (EventKeywords)64; public const EventKeywords AdvancedTrace = (EventKeywords)128; public const EventKeywords AdvancedTraceBin = (EventKeywords)256; public const EventKeywords CorrelationTrace = (EventKeywords)512; public const EventKeywords StateDump = (EventKeywords)1024; public const EventKeywords SNITrace = (EventKeywords)2048; public const EventKeywords SNIScope = (EventKeywords)4096; public Keywords(); } public static class Tasks { public const EventTask ExecuteCommand = (EventTask)1; public const EventTask Scope = (EventTask)2; public const EventTask PoolerScope = (EventTask)3; public const EventTask NotificationScope = (EventTask)4; public const EventTask SNIScope = (EventTask)5; } public static readonly SqlClientEventSource Log; public static Action OnEventSourceEnabled { get; set; } public static bool WasEnabled { get; } public bool IsExecutionTraceEnabled(); public bool IsTraceEnabled(); public bool IsScopeEnabled(); public bool IsNotificationTraceEnabled(); public bool IsNotificationScopeEnabled(); public bool IsPoolerTraceEnabled(); public bool IsPoolerScopeEnabled(); public bool IsAdvancedTraceOn(); public bool IsAdvancedTraceBinOn(); public bool IsCorrelationEnabled(); public bool IsStateDumpEnabled(); public bool IsSNITraceEnabled(); public bool IsSNIScopeEnabled(); public void TraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryTraceEvent(string message); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5); public void TryTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5, [System.Runtime.CompilerServices.Nullable(2)] T6>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5, T6 arg6); public long TryScopeEnterEvent(string className, string memberName = ""); public long TryScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public long TryScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public long TryScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public long TryScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryScopeLeaveEvent(long scopeId); public void TryBeginExecuteEvent(int objectId, string dataSource, string database, string commandText, Guid? connectionId, string memberName = ""); public void TryEndExecuteEvent(int objectId, int compositeState, int sqlExceptionNumber, Guid? connectionId, string memberName = ""); public void NotificationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TryNotificationTraceEvent(string message); public void TryNotificationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryNotificationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TryNotificationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TryNotificationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public long TryNotificationScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public long TryNotificationScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public long TryNotificationScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public long TryNotificationScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryNotificationScopeLeaveEvent(long scopeId); public void TryPoolerTraceEvent(string message); public void TryPoolerTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryPoolerTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TryPoolerTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TryPoolerTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public long TryPoolerScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryPoolerScopeLeaveEvent(long scopeId); public void AdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void AdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void AdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void AdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryAdvancedTraceEvent(string message); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5, [System.Runtime.CompilerServices.Nullable(2)] T6, [System.Runtime.CompilerServices.Nullable(2)] T7>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5, T6 args6, T7 args7); public void TryAdvancedTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5, [System.Runtime.CompilerServices.Nullable(2)] T6>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5, T6 args6); public long TryAdvancedScopeEnterEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryAdvanceScopeLeave(long scopeId); public void TryAdvancedTraceBinEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TryAdvancedTraceErrorEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4); public void TryCorrelationTraceEvent(string message); public void TryCorrelationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public void TryCorrelationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void TryCorrelationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TryCorrelationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string message, T0 args0, T1 args1, T2 args2, T3 args3); public void TryCorrelationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4); public void TryCorrelationTraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5>(string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5); public void StateDumpEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public void StateDumpEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string message, T0 args0, T1 args1, T2 args2); public void TrySNITraceEvent(string className, string eventType, string message, string memberName = ""); public void TrySNITraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0>(string className, string eventType, string message, T0 args0, string memberName = ""); public void TrySNITraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string className, string eventType, string message, T0 args0, T1 args1, string memberName = ""); public void TrySNITraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2>(string className, string eventType, string message, T0 args0, T1 args1, T2 args2, string memberName = ""); public void TrySNITraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3>(string className, string eventType, string message, T0 args0, T1 args1, T2 args2, T3 args3, string memberName = ""); public void TrySNITraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4>(string className, string eventType, string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, string memberName = ""); public void TrySNITraceEvent<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1, [System.Runtime.CompilerServices.Nullable(2)] T2, [System.Runtime.CompilerServices.Nullable(2)] T3, [System.Runtime.CompilerServices.Nullable(2)] T4, [System.Runtime.CompilerServices.Nullable(2)] T5>(string className, string eventType, string message, T0 args0, T1 args1, T2 args2, T3 args3, T4 args4, T5 args5, string memberName = ""); public long TrySNIScopeEnterEvent(string className, string memberName = ""); public void TrySNIScopeLeaveEvent(long scopeId); public void BeginExecute(int objectId, string dataSource, string database, string commandText, string message); public void EndExecute(int objectId, int compositestate, int sqlExceptionNumber, string message); public void Trace(string message); public long ScopeEnter(string message); public void ScopeLeave(string message); public void NotificationTrace(string message); public long NotificationScopeEnter(string message); public void NotificationScopeLeave(string message); public void PoolerTrace(string message); public long PoolerScopeEnter(string message); public void PoolerScopeLeave(string message); public void AdvancedTrace(string message); public long AdvancedScopeEnter(string message); public void AdvancedScopeLeave(string message); public void AdvancedTraceBin(string message); public void AdvancedTraceError(string message); public void CorrelationTrace(string message); public void StateDump(string message); public void SNITrace(string message); public long SNIScopeEnter(string message); public void SNIScopeLeave(string message); } }