Skip to content

Commit 617e36d

Browse files
committed
fixes from review
1 parent 6e516d4 commit 617e36d

File tree

1 file changed

+4
-31
lines changed

1 file changed

+4
-31
lines changed

articles/azure-functions/functions-host-json.md

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ The following sample *host.json* file has all possible options specified (exclud
104104
"tempFolder": null,
105105
"thresholdForSnapshotting": 1,
106106
"uploaderProxy": null
107-
},
108-
"SamplingExcludedTypes": "",
109-
"SamplingIncludedTypes": "Dependency, Event, Exception, PageView, Request, Trace"
107+
}
110108
}
111109
},
112110
"managedDependency": {
@@ -135,41 +133,16 @@ This setting is a child of [logging](#logging).
135133

136134
Controls options for Application Insights, including [sampling options](./functions-monitoring.md#configure-sampling).
137135

138-
```json
139-
{
140-
"applicationInsights": {
141-
"enableDependencyTracking": true,
142-
"enablePerformanceCountersCollection": true,
143-
"samplingExcludedTypes": "Trace;Exception",
144-
"samplingIncludedTypes": "Request;Dependency",
145-
"samplingSettings": {
146-
"isEnabled": true,
147-
"maxTelemetryItemsPerSecond" : 20
148-
"EvaluationInterval": "00:00:15",
149-
"InitialSamplingPercentage": 0,
150-
"MaxSamplingPercentage": 100,
151-
"MinSamplingPercentage": 0.1,
152-
"MovingAverageRatio":0.25,
153-
"SamplingPercentageDecreaseTimeout": "00:02:00",
154-
"SamplingPercentageIncreaseTimeout": "00:15:00"
155-
}
156-
"SamplingExcludedTypes": "",
157-
"SamplingIncludedTypes": "Dependency, Event, Exception, PageView, Request, Trace",
158-
"EnableLiveMetrics": true,
159-
"EnableDependencyTracing":true,
160-
"EnablePerformanceCountersCollection":true
161-
}
162-
}
163-
```
136+
For the complete JSON structure, see the earlier [example host.json file](#sample-hostjson-file).
164137

165138
> [!NOTE]
166139
> Log sampling may cause some executions to not show up in the Application Insights monitor blade. To avoid log sampling, add `samplingExcludedTypes: "Request"` to the `applicationInsights` value.
167140
168141
| Property | Default | Description |
169142
| --------- | --------- | --------- |
170143
| samplingSettings | n/a | See [applicationInsights.samplingSettings](#applicationinsightssamplingsettings). |
171-
| samplingExcludedTypes | `Dependency;Event` | A semi-colon delimited list of types that you don't want to be sampled. Recognized types are: Dependency, Event, Exception, PageView, Request, Trace. All instances of the specified types are transmitted; the types that are not specified are sampled. |
172-
| samplingIncludedTypes | `PageView;Trace` | A semi-colon delimited list of types that you want to be sampled; an empty list implies all types. Type listed in `samplingExcludedTypes` override types listed here. Recognized types are: Dependency, Event, Exception, PageView, Request, Trace. All instances of the specified types are transmitted; the types that are not specified are sampled. |
144+
| samplingExcludedTypes | null | A semi-colon delimited list of types that you don't want to be sampled. Recognized types are: Dependency, Event, Exception, PageView, Request, Trace. All instances of the specified types are transmitted; the types that are not specified are sampled. |
145+
| samplingIncludedTypes | null | A semi-colon delimited list of types that you want to be sampled; an empty list implies all types. Type listed in `samplingExcludedTypes` override types listed here. Recognized types are: Dependency, Event, Exception, PageView, Request, Trace. All instances of the specified types are transmitted; the types that are not specified are sampled. |
173146
| enableLiveMetrics | true | Enables live metrics collection. |
174147
| enableDependencyTracking | true | Enables dependency tracking. |
175148
| enablePerformanceCountersCollection | true | Enables Kudu performance counters collection. |

0 commit comments

Comments
 (0)