Skip to content

Commit 97ac25c

Browse files
authored
Merge pull request #7 from pagopa/NOD-567-nodo-re-ottimizzazione-logging
[NOD_567] fix: optimized logging
2 parents 38853b9 + c058575 commit 97ac25c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

host.json

+12-9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
"version": "[4.0.0, 5.0.0)"
66
},
77
"extensions": {
8+
"tracing": {
9+
"traceInputsAndOutputs": false,
10+
"traceReplayEvents": false
11+
},
812
"eventHubs": {
913
"maxEventBatchSize" : 10,
1014
"batchCheckpointFrequency" : 2,
@@ -22,18 +26,17 @@
2226
},
2327
"functions": [ "Info", "EventHubNodoReEventProcessor" ],
2428
"logging": {
29+
"logLevel": {
30+
"default": "Error",
31+
"Function.EventHubNodoReEventProcessor": "Warning"
32+
},
2533
"applicationInsights": {
2634
"samplingSettings": {
27-
"isEnabled": false
35+
"isEnabled": true,
36+
"maxTelemetryItemsPerSecond": 5,
37+
"includedTypes": "PageView;Trace;Dependency;Request",
38+
"excludedTypes": "Exception;Event;CustomEvent"
2839
}
29-
},
30-
"fileLoggingMode": "always",
31-
"logLevel": {
32-
"default": "Information",
33-
"Host.Results": "Error",
34-
"Function": "Information",
35-
"Function.EventHubNodoReEventProcessor": "Error",
36-
"Host.Aggregator": "Trace"
3740
}
3841
}
3942
}

0 commit comments

Comments
 (0)