<PackageReference Include="Microsoft.Data.SqlClient.Extensions.Logging" Version="1.0.0-preview1.26064.3" />

Microsoft.Data.SqlClient.SqlClientEventScope

public struct SqlClientEventScope
A disposable scope for general event tracing. Automatically leaves the scope when disposed.
namespace Microsoft.Data.SqlClient { public readonly ref struct SqlClientEventScope { public SqlClientEventScope(long scopeID); public void Dispose(); public static SqlClientEventScope Create<[System.Runtime.CompilerServices.Nullable(2)] T0>(string message, T0 args0); public static SqlClientEventScope Create<[System.Runtime.CompilerServices.Nullable(2)] T0, [System.Runtime.CompilerServices.Nullable(2)] T1>(string message, T0 args0, T1 args1); public static SqlClientEventScope Create(string className, string memberName = ""); public static SqlClientEventScope Create(long scopeId); } }