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/digital-twins/how-to-diagnose-user-defined-functions.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,43 +6,41 @@ manager: deshner
6
6
ms.service: digital-twins
7
7
services: digital-twins
8
8
ms.topic: conceptual
9
-
ms.date: 12/27/2018
9
+
ms.date: 06/05/2019
10
10
ms.author: stefanmsft
11
11
ms.custom: seodec18
12
12
---
13
13
14
14
# How to debug user-defined functions in Azure Digital Twins
15
15
16
-
This article summarizes how to diagnose and debug user-defined functions. Then, it identifies some of the most common scenarios found when debugging them.
16
+
This article summarizes how to diagnose and debug user-defined functions in Azure Digital Twins. Then, it identifies some of the most common scenarios found when debugging them.
17
17
18
18
>[!TIP]
19
19
> Read [How to configure monitoring and logging](./how-to-configure-monitoring.md) to learn more about setting up debugging tools in Azure Digital Twins using Activity Logs, Diagnostic Logs, and Azure Monitor.
20
20
21
21
## Debug issues
22
22
23
-
Knowing how to diagnose any issues that arise within your Azure Digital Twins instance aids you to effectively identify the issue, the cause of the problem, and a solution.
23
+
Knowing how to diagnose issues within Azure Digital Twins allows you to effectively analyze issues, identify the causes of problems, and provide appropriate solutions for them.
24
24
25
-
### Enable log analytics for your instance
25
+
A variety of logging, analytics, and diagnostic tools are provided to that end.
26
26
27
-
Logs and metrics for your Azure Digital Twins instance are displayed in Azure Monitor. This documentation assumes you have created an [Azure Monitor logs](../azure-monitor/log-query/log-query-overview.md) workspace through the [Azure Portal](../azure-monitor/learn/quick-create-workspace.md), through [Azure CLI](../azure-monitor/learn/quick-create-workspace-cli.md), or through [PowerShell](../azure-monitor/learn/quick-create-workspace-posh.md).
27
+
### Enable logging for your instance
28
28
29
-
> [!NOTE]
30
-
> You may experience a 5 minute delay when sending events to Azure Monitor logs for the first time.
29
+
Azure Digital Twins supports robust logging, monitoring, and analytics. Solutions developers can use Azure Monitor logs, diagnostic logs, activity logs, and other services to support the complex monitoring needs of an IoT app. Logging options can be combined to query or display records across several services and to provide granular logging coverage for many services.
31
30
32
-
To configure monitoring and logging for Azure Digital Twins resources, read [How to configure monitoring and logging](./how-to-configure-monitoring.md).
31
+
* For logging configuration specific to Azure Digital Twins, read [How to configure monitoring and logging](./how-to-configure-monitoring.md).
32
+
* Consult the the [Azure Monitor](../azure-monitor/overview.md) overview to learn about powerful log settings enabled through Azure Monitor.
33
+
* Review the article [Collect and consume log data from your Azure resources](../azure-monitor/platform/diagnostic-logs-overview.md) for configuring diagnostic log settings in Azure Digital Twins through the Azure Portal, Azure CLI, or PowerShell.
33
34
34
-
Read the article [Collect and consume log data from your Azure resources](../azure-monitor/platform/diagnostic-logs-overview.md) for configuring diagnostic log settings in Azure Digital Twins through the Azure Portal, Azure CLI, or PowerShell.
35
-
36
-
>[!IMPORTANT]
37
-
> Make sure to select all log categories, metrics, and your Azure Log Analytics workspace.
35
+
Once configured, you'll be able to select all log categories, metrics, and use powerful Azure Monitor log analytics workspaces to support your debugging efforts.
38
36
39
37
### Trace sensor telemetry
40
38
41
39
To trace sensor telemetry, verify that diagnostic settings are enabled for your Azure Digital Twins instance. Then, ensure that all desired log categories are selected. Lastly, confirm that the desired logs are being sent to Azure Monitor logs.
42
40
43
41
To match a sensor telemetry message to its respective logs, you can specify a Correlation ID on the event data being sent. To do so, set the `x-ms-client-request-id` property to a GUID.
44
42
45
-
After sending telemetry, open up log analytics to query for logs using the set Correlation ID:
43
+
After sending telemetry, open log analytics to query for logs using the set Correlation ID:
46
44
47
45
```Kusto
48
46
AzureDiagnostics
@@ -204,4 +202,6 @@ If you enable diagnostic settings, you might encounter these common exceptions:
204
202
205
203
## Next steps
206
204
207
-
- Learn how to enable [monitoring and logs](../azure-monitor/platform/activity-logs-overview.md) in Azure Digital Twins.
205
+
- Learn how to enable [monitoring and logs](./how-to-configure-monitoring.md) in Azure Digital Twins.
206
+
207
+
- Read the [Overview of Azure Activity log](../azure-monitor/platform/activity-logs-overview.md) article for more Azure logging options.
0 commit comments