Introduction
Telemetry turns extension behavior into evidence that you can query. A useful observability workflow connects the destination configuration, purposeful AL instrumentation, and analysis of related events.
Connect telemetry to a diagnostic question
Suppose an extension operation sometimes fails in a Business Central online sandbox. A generic error report doesn't show whether the operation started, where it stopped, or which executions share the same outcome. You need an event sequence that distinguishes successful and failed executions without recording customer-sensitive values.
Business Central supports two related telemetry destinations. Environment-level telemetry gives an administrator a tenant-wide view. Extension-publisher telemetry gives an extension publisher signals from its own extension across installations. Choosing the destination is separate from choosing the event's telemetry scope in AL.
Follow the observability workflow
In this module, you explore how to configure both telemetry levels, design custom events with Session.LogMessage, and query emitted traces with Kusto Query Language (KQL). You then build a small extension that emits started, succeeded, and failed events for one operation and use a shared operation identifier to investigate both outcomes.
The exercise uses a Business Central online sandbox and a workspace-based Application Insights resource. It keeps on-premises Windows Event Log instrumentation as a contrast rather than a deployment path.
By the end of this module, you're able to configure, instrument, and analyze Business Central telemetry to diagnose extension behavior.