From c0585752a1ed858a87bf3e0dcc46097d08ea18a3 Mon Sep 17 00:00:00 2001 From: Andrea De Rinaldis Date: Tue, 31 Oct 2023 10:50:51 +0100 Subject: [PATCH] [NOD_567] fix: optimized logging --- host.json | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/host.json b/host.json index 3765cbf..52d805e 100644 --- a/host.json +++ b/host.json @@ -5,6 +5,10 @@ "version": "[4.0.0, 5.0.0)" }, "extensions": { + "tracing": { + "traceInputsAndOutputs": false, + "traceReplayEvents": false + }, "eventHubs": { "maxEventBatchSize" : 10, "batchCheckpointFrequency" : 2, @@ -22,18 +26,17 @@ }, "functions": [ "Info", "EventHubNodoReEventProcessor" ], "logging": { + "logLevel": { + "default": "Error", + "Function.EventHubNodoReEventProcessor": "Warning" + }, "applicationInsights": { "samplingSettings": { - "isEnabled": false + "isEnabled": true, + "maxTelemetryItemsPerSecond": 5, + "includedTypes": "PageView;Trace;Dependency;Request", + "excludedTypes": "Exception;Event;CustomEvent" } - }, - "fileLoggingMode": "always", - "logLevel": { - "default": "Information", - "Host.Results": "Error", - "Function": "Information", - "Function.EventHubNodoReEventProcessor": "Error", - "Host.Aggregator": "Trace" } } }