You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/configure-monitoring.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,23 @@ You can exclude certain types of telemetry from sampling. In this example, data
197
197
198
198
For more information, see [Sampling in Application Insights](../azure-monitor/app/sampling.md).
199
199
200
+
## Enable SQL query collection
201
+
202
+
Application Insights automatically collects data on dependencies for HTTP requests, database calls, and for several bindings. For more information, see [Dependencies](./functions-monitoring.md#dependencies). For SQL calls, the name of the server and database is always collected and stored, but SQL query text isn't collected by default. You can use `dependencyTrackingOptions.enableSqlCommandTextInstrumentation` to enable SQL query text logging by setting (at minimum) the following in your [host.json file](./functions-host-json.md):
203
+
204
+
```json
205
+
"logging": {
206
+
"applicationInsights": {
207
+
"enableDependencyTracking": true,
208
+
"dependencyTrackingOptions": {
209
+
"enableSqlCommandTextInstrumentation": true
210
+
}
211
+
}
212
+
}
213
+
```
214
+
215
+
For more information, see [Advanced SQL tracking to get full SQL query](../azure-monitor/app/asp-net-dependencies.md#advanced-sql-tracking-to-get-full-sql-query).
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-concurrency.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ Using dynamic concurrency provides the following benefits:
43
43
44
44
### Dynamic concurrency configuration
45
45
46
-
Dynamic concurrency can be enabled at the host level in the host.json file. When, enabled any binding extensions used by your function app that support dynamic concurrency will adjust concurrency dynamically as needed. Dynamic concurrency settings override any manually configured concurrency settings for triggers that support dynamic concurrency.
46
+
Dynamic concurrency can be enabled at the host level in the host.json file. When, enabled any binding extensions used by your function app that support dynamic concurrency adjust concurrency dynamically as needed. Dynamic concurrency settings override any manually configured concurrency settings for triggers that support dynamic concurrency.
47
47
48
48
By default, dynamic concurrency is disabled. With dynamic concurrency enabled, concurrency starts at 1 for each function, and is adjusted up to an optimal value, which is determined by the host.
@@ -182,6 +190,12 @@ For more information about these settings, see [Sampling in Application Insights
182
190
| enableW3CDistributedTracing | true | Enables or disables support of W3C distributed tracing protocol (and turns on legacy correlation schema). Enabled by default if `enableHttpTriggerExtendedInfoCollection` is true. If `enableHttpTriggerExtendedInfoCollection` is false, this flag applies to outgoing requests only, not incoming requests. |
183
191
| enableResponseHeaderInjection | true | Enables or disables injection of multi-component correlation headers into responses. Enabling injection allows Application Insights to construct an Application Map to when several instrumentation keys are used. Enabled by default if `enableHttpTriggerExtendedInfoCollection` is true. This setting doesn't apply if `enableHttpTriggerExtendedInfoCollection` is false. |
184
192
193
+
### applicationInsights.dependencyTrackingOptions
194
+
195
+
|Property | Default | Description |
196
+
| --------- | --------- | --------- |
197
+
| enableSqlCommandTextInstrumentation | false | Enables collection of the full text of SQL queries, which is disabled by default. For more information on collecting SQL query text, see [Advanced SQL tracking to get full SQL query](../azure-monitor/app/asp-net-dependencies.md#advanced-sql-tracking-to-get-full-sql-query). |
198
+
185
199
### applicationInsights.snapshotConfiguration
186
200
187
201
For more information on snapshots, see [Debug snapshots on exceptions in .NET apps](../azure-monitor/app/snapshot-debugger.md) and [Troubleshoot problems enabling Application Insights Snapshot Debugger or viewing snapshots](../azure-monitor/app/snapshot-debugger-troubleshoot.md).
@@ -267,6 +281,24 @@ Configuration settings for a custom handler. For more information, see [Azure Fu
267
281
268
282
Configuration setting can be found in [bindings for Durable Functions](durable/durable-functions-bindings.md#host-json).
269
283
284
+
## concurrency
285
+
286
+
Enables dynamic concurrency for specific bindings in your function app. For more information, see [Dynamic concurrency](./functions-concurrency.md#dynamic-concurrency).
287
+
288
+
```json
289
+
{
290
+
"concurrency": {
291
+
"dynamicConcurrencyEnabled": true,
292
+
"snapshotPersistenceEnabled": true
293
+
}
294
+
}
295
+
```
296
+
297
+
|Property | Default | Description |
298
+
| --------- | --------- | --------- |
299
+
| dynamicConcurrencyEnabled | false | Enables dynamic concurrency behaviors for all triggers supported by this feature, which is off by default. |
300
+
| snapshotPersistenceEnabled | true | Learned concurrency values are periodically persisted to storage so new instances start from those values instead of starting from 1 and having to redo the learning. |
301
+
270
302
## eventHub
271
303
272
304
Configuration settings can be found in [Event Hub triggers and bindings](functions-bindings-event-hubs.md#host-json).
Copy file name to clipboardExpand all lines: articles/azure-monitor/app/asp-net-dependencies.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ For webpages, the Application Insights JavaScript SDK automatically collects AJA
91
91
## Advanced SQL tracking to get full SQL query
92
92
93
93
> [!NOTE]
94
-
> Azure Functions requires separate settings to enable SQL text collection. Within [host.json](../../azure-functions/functions-host-json.md#applicationinsights), set `"EnableDependencyTracking": true,` and `"DependencyTrackingOptions": { "enableSqlCommandTextInstrumentation": true }` in `applicationInsights`.
94
+
> Azure Functions requires separate settings to enable SQL text collection. For more information, see [Enable SQL query collection](../../azure-functions/configure-monitoring.md#enable-sql-query-collection).
95
95
96
96
For SQL calls, the name of the server and database is always collected and stored as the name of the collected `DependencyTelemetry`. Another field, called data, can contain the full SQL query text.
0 commit comments