Skip to content

Commit 7c66563

Browse files
authored
Merge pull request #78742 from KingdomOfEnds/dt-udf
udf refresh
2 parents f0b0c32 + 4b35a1e commit 7c66563

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/digital-twins/how-to-diagnose-user-defined-functions.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,41 @@ manager: deshner
66
ms.service: digital-twins
77
services: digital-twins
88
ms.topic: conceptual
9-
ms.date: 12/27/2018
9+
ms.date: 06/05/2019
1010
ms.author: stefanmsft
1111
ms.custom: seodec18
1212
---
1313

1414
# How to debug user-defined functions in Azure Digital Twins
1515

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.
1717

1818
>[!TIP]
1919
> 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.
2020
2121
## Debug issues
2222

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.
2424

25-
### Enable log analytics for your instance
25+
A variety of logging, analytics, and diagnostic tools are provided to that end.
2626

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
2828

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.
3130

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.
3334

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.
3836

3937
### Trace sensor telemetry
4038

4139
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.
4240

4341
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.
4442

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:
4644

4745
```Kusto
4846
AzureDiagnostics
@@ -204,4 +202,6 @@ If you enable diagnostic settings, you might encounter these common exceptions:
204202

205203
## Next steps
206204

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

Comments
 (0)