From 6531cd972cf0b10b69f47d3abfe012ccf8133122 Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Tue, 19 Dec 2023 13:47:50 -0800 Subject: [PATCH] up --- .../Azure.Sdk.Tools.HttpFaultInjector/Program.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/tools/http-fault-injector/Azure.Sdk.Tools.HttpFaultInjector/Program.cs b/tools/http-fault-injector/Azure.Sdk.Tools.HttpFaultInjector/Program.cs index cbd390f3902..38b5d5481f0 100644 --- a/tools/http-fault-injector/Azure.Sdk.Tools.HttpFaultInjector/Program.cs +++ b/tools/http-fault-injector/Azure.Sdk.Tools.HttpFaultInjector/Program.cs @@ -66,20 +66,12 @@ private static void Run(Options options, string[] args) } builder.Logging.ClearProviders(); - - /* - alternative: - "Console": { - "IncludeScopes": true, - "TimestampFormat": "[yyyy-MM-dd HH:mm:ss.ffffzzzz] " - } - */ builder.Logging.AddOpenTelemetry(o => { o.SetResourceBuilder(ResourceBuilder.CreateEmpty()); o.IncludeFormattedMessage = false; + o.IncludeScopes = false; o.ParseStateValues = true; - o.IncludeScopes = true; // can add more exporters, e.g. ApplicationInsights o.AddConsoleExporter(); });