Skip to content
Bitta Apps
AL development

Business Central Telemetry with Application Insights in AL

Connect an extension to Application Insights, use platform signals first, design safe dimensions, and turn KQL queries and alerts into support decisions.

The Business Central admin center environment details with Telemetry Not Set highlighted, beside the headline Telemetry still not configured?
On this page

Business Central telemetry sends operational data to Application Insights at two levels: the environment and the extension. Administrators configure environment telemetry; AL developers add applicationInsightsConnectionString to app.json. For an extension, the platform then sends eligible page views, API requests, report runs, errors and performance events. Add Feature Telemetry or Session.LogMessage for business events the platform does not describe.

This guide is for AL developers and publishers who support extensions in production. Tests explain what should happen in a controlled environment; telemetry explains what is happening across real environments, versions, companies and workloads.

Review your environment. The free BC Environment Snapshot is one hour on a screen share with a Business Central consultant, then a written summary of your environment within five business days.

Connect the right Application Insights resource

Business Central supports environment-level and app/extension-level telemetry. Extension telemetry targets publishers of per-tenant extensions and Microsoft Marketplace (formerly AppSource) apps, because it can reveal failures and performance problems before a user provides a complete reproduction.

Starting with runtime 7.2, Microsoft documents the applicationInsightsConnectionString setting in app.json. The legacy applicationInsightsKey setting applies only to earlier runtimes, and support for instrumentation key-based ingestion ended on 2025-03-31. Ingestion still works without updates or support; use a connection string.

{
  "applicationInsightsConnectionString": "<ConnectionString>"
}

Do not commit a production connection string to a public repository. Treat it as release configuration in your CI/CD release pipeline. Confirm the Azure region, retention, access roles and cost controls with the organization that owns the telemetry.

Use platform signals before inventing custom ones

Business Central already emits telemetry for many operations, including extension lifecycle, errors, long-running AL methods, SQL activity, web-service calls, reports, job queues, permissions and Marketplace validation. Start by mapping those signals to the support questions you need to answer.

Add feature telemetry when the platform cannot describe the business event. Microsoft points AL developers to the Feature Telemetry module in the System Application, which needs exactly one "Telemetry Logger" implementation registered per publisher for the extension telemetry pipeline, or to Session.LogMessage for custom event IDs and dimensions. A custom event should have a stable event ID, a clear purpose and a small set of documented dimensions.

Design dimensions for diagnosis

Useful dimensions often include app version, operation, result category, feature, execution mode and a non-sensitive correlation ID. Exclude names, email addresses, document descriptions, free-form error content, access tokens and business values. Only DataClassification::SystemMetadata events are sent to Application Insights; review custom telemetry for privacy.

Record categories rather than uncontrolled text. For example, result=validation_failed is easier to aggregate and safer than logging a complete document or exception payload.

Choose the telemetry scope deliberately. TelemetryScope::ExtensionPublisher targets the resource in app.json; TelemetryScope::All also targets the configured environment resource.

Measure a complete operation

A good operation has a start, outcome, duration and correlation. If work crosses Business Central, a queue and an external service, carry a correlation value through each layer without using a customer identifier. This lets support distinguish "Business Central did not create the outbound message" from "the receiving service rejected it."

Build queries around support decisions

Business Central telemetry is stored in the traces and pageViews tables and analyzed with Kusto Query Language (KQL). Create saved queries for:

  • failure rate by app version and operation;

  • slow operations by percentile, not only average;

  • new error categories after a deployment;

  • web-service throttling and transient failures;

  • extension upgrade and installation failures;

  • environments still running a version that needs attention.

A dashboard should lead to an action. If nobody knows what threshold requires intervention or who owns it, the chart is decoration rather than monitoring.

Alert on symptoms that matter

Microsoft documents alerting options through Power BI metrics, Azure Application Insights alerts, Azure Logic Apps and Power Automate. Avoid an alert for every individual error. Alert on sustained failure rate, a critical operation disappearing, a new error category, repeated upgrade failure or a material latency change. Route alerts to an owner with a runbook and enough context to investigate.

Control cost and retention

Application Insights billing depends on ingestion and retention. Microsoft's telemetry cost guidance recommends a daily cap, an alert when the cap is reached, and sampling or data collection rules. Web service calls and background sessions can generate large volumes of data. Preserve errors and critical audit events according to policy, and review unused telemetry periodically.

Telemetry definition of done

  1. The app and environment resources are intentionally selected.

  2. Every custom event has an owner, documented dimensions, data classification and a deliberate scope.

  3. No credential or unnecessary personal or business content is emitted.

  4. Saved KQL queries answer the top support questions.

  5. Alerts have thresholds, routing and runbooks.

  6. Dashboards separate app versions and deployment windows.

  7. Ingestion cost, the daily cap and retention are reviewed.

Review the telemetry design after each release wave and major integration change, alongside your extension upgrade strategy. Update 29.0, which starts 2026 release wave 2, for example added telemetry for Open in Excel usage.

Bitta Apps includes telemetry instrumentation in its AL extension engineering, alongside integrations and Business Central support, to support diagnosis.

Next step. For an outside view of your environment before you change how it is monitored, book the free BC Environment Snapshot: one hour on a screen share with a Business Central consultant, then a written summary of your environment within five business days. For instrumentation work, see AL development services.

FAQ

Frequently asked questions

How do I enable Application Insights telemetry for a Business Central extension?

Create an Application Insights resource in Azure and copy its connection string from the resource's Overview page. Add it to the extension's app.json as the applicationInsightsConnectionString property, which Microsoft documents for runtime 7.2 and later. Then build, publish and install the extension, and it sends eligible events to that resource when telemetry emission is enabled.

What is the difference between applicationInsightsKey and applicationInsightsConnectionString?

applicationInsightsKey is the legacy app.json property that holds only an instrumentation key, and Microsoft documents it for runtimes earlier than 7.2. applicationInsightsConnectionString is the current property for runtime 7.2 and later. Microsoft says not to specify both in the same manifest, and support for instrumentation key-based ingestion ended on 2025-03-31. Ingestion still works, but without updates or support.

Should I use Feature Telemetry or Session.LogMessage in AL?

Microsoft suggests the Feature Telemetry module in the System Application instead of raw Session.LogMessage calls. It logs usage, errors and uptake with common information, and its extension telemetry pipeline requires exactly one Telemetry Logger implementation registered per publisher. Use Session.LogMessage for custom event IDs, messages and dimensions; only SystemMetadata-classified events are sent to Application Insights.

Where is Business Central telemetry stored in Application Insights?

Business Central telemetry is stored in the traces and pageViews tables of the Application Insights resource. Custom events sent with Session.LogMessage land in the traces table. You query both tables with Kusto Query Language (KQL) in the Logs view, Power BI, alerts or Azure dashboards.

How do I control the cost of Business Central telemetry in Application Insights?

Application Insights is billed on data ingestion and data retention. Microsoft recommends a daily ingestion cap, an alert when the cap is reached so you know data is being dropped, and sampling or data collection rules to filter what is ingested. Web service calls and background sessions can generate large volumes of data; measure their contribution before filtering.

Sources

Claims in this article were checked against the following on Nov 18, 2026.

  1. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-overview
  2. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-application-insights-for-extensions
  3. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-instrument-application-for-telemetry-app-insights
  4. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-feature-telemetry
  5. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-analyze-with-kql
  6. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-alert
  7. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-control-cost
  8. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/whatsnew/whatsnew-update-29-0
  9. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-instrument-application-for-telemetry
  10. bittaapps.com/services/al-development
  11. bittaapps.com/contact
  12. learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/telemetryscope/telemetryscope-option
  13. bittaapps.com/services/integrations
  14. bittaapps.com/services/support
  15. bittaapps.com/blog/cicd-business-central-al-extensions-release-pipeline
  16. bittaapps.com/blog/al-extension-upgrade-strategies-business-central

Written by

Mohammad Nour Itani

Founder & Senior Business Central Developer

Related services

Work with Bitta Apps on this

Next step

Talk to a senior Business Central consultant, not a sales rep.

Fixed-price proposal in writing within five business days of discovery.