mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-15 19:22:19 +08:00
feat(cli): disable distributed context propagation
This commit is contained in:
parent
2ed57ec9ac
commit
5f047d4e4a
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.CommandLine;
|
||||
using System.CommandLine.NamingConventionBinder;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
|
@ -44,6 +45,10 @@ namespace BililiveRecorder.Cli
|
|||
{
|
||||
ConsoleModeHelper.SetQuickEditMode(false);
|
||||
}
|
||||
|
||||
DistributedContextPropagator.Current = DistributedContextPropagator.CreateNoOutputPropagator();
|
||||
AppContext.SetSwitch("System.Net.Http.EnableActivityPropagation", false);
|
||||
|
||||
RootCommand root;
|
||||
|
||||
using (var entrypointLogger = BuildLogger(LogEventLevel.Fatal, LogEventLevel.Verbose))
|
||||
|
|
Loading…
Reference in New Issue
Block a user