<PackageReference Include="Serilog" Version="4.4.0-dev-02438" />

System.Diagnostics.StackTraceHiddenAttribute

Types and Methods attributed with StackTraceHidden will be omitted from the stack trace text shown in StackTrace.ToString() and Exception.StackTrace
namespace System.Diagnostics { internal sealed class StackTraceHiddenAttribute : Attribute { public StackTraceHiddenAttribute(); } }