Analyzing Long Running AL Methods Telemetry
> APPLIES TO: Business Central 2020 release wave 2 and later, version 17.1. Available in extension telemetry starting with version 18.1.
The Business Central Server server will emit telemetry about the execution time of long running AL methods, including the time spent in the database. The signal also includes a breakdown of how much time each event subscriber added to the total time. As a partner, this data gives you insight into bad performing code and enables you to troubleshoot performance issues caused by extensions.
Note
To collect this telemetry for Business Central on-premises, the AL Function Timing and AL Function Logging Threshold - Application Insights settings must be configured on the Business Central Server instance. For more information, see Configuring Business Central Server. With Business Central online, this telemetry is enabled with a specific threshold on a case-by-case basis by the service.
General dimensions
The following table explains the general dimensions included in the trace. The table lists the dimensions that are specific to Business Central.
| Dimension | Description or value |
|---|---|
| message | Operation exceeded time threshold (AL method) |
| severityLevel | 2 |
CustomDimensions
This table describes the different dimensions of a Operation exceeded time threshold (AL method) operation.
| Column (key) | Description or value |
|---|---|
| aadTenantId | Specifies the Azure Active Directory (Azure AD) tenant ID when using Azure AD authentication. For on-premises, if you aren't using Azure AD authentication, this value is common. |
| alMethod | The name of the long running AL method. |
| alObjectId | The type of the AL object that executed the AL method. |
| alObjectName | The name of the AL object that executed the AL method. |
| alObjectType | The type of the AL object that executed the AL method. |
| alStackTrace | The stack trace in AL. |
| clientType | Specifies the type of client that executed the AL method, such as Background or Web. For a list of the client types, see ClientType Option Type. |
| companyName | The display name of the Business Central company that was used at time of execution. |
| component | Dynamics 365 Business Central Server |
| componentVersion | Specifies the version number of the component that emits telemetry (see the component dimension.) |
| deprecatedKeys | A comma-separated list of all the keys that have been deprecated. The keys in this list are still supported but will eventually be removed in the next major release. We recommend that update any queries that use these keys to use the new key name. |
| environmentType | Specifies the environment type of the Business Central solution, such as Production or Sandbox. |
| environmentName | Specifies the environment name of the Business Central solution, such as Production or Sandbox. |
| eventId | RT0018 |
| executionTime | Specifies the total time that it took to execute the AL method. The value has the format hh:mm:ss.sssssss. |
| extensionInfo | Specifies information about individual extensions that contributed to the execution time spent in the call stack up until the point at which the long-running threshold was exceeded and the trace was emitted. The following information is included for each extension:
|
| extensionName | Specifies the name of the extension that was currently executing when the long-running threshold was exceeded and the trace was emitted. |
| extensionPublisher | Specifies the publisher of the extension that was currently executing when the long-running threshold was exceeded and the trace was emitted. |
| extensionVersion | Specifies the version of the extension that was currently executing when the long-running threshold was exceeded and the trace was emitted. |
| extensionId | Specifies the ID of the extension that was currently executing when the long-running threshold was exceeded and the trace was emitted. |
| longRunningThreshold | Specifies the time that defines a long-running AL method, after which the trace is emitted. The value has the format hh:mm:ss.sssssss. |
| telemetrySchemaVersion | Specifies the version of the Business Central telemetry schema. |
See also
Monitoring and Analyzing Telemetry
Enable Sending Telemetry to Application Insights
Monitoring and Analyzing Long Running SQL Queries On-Premises
The Business Central Administration Center
Feedback
Submit and view feedback for