Summary
The workflow in this module connects environment and extension-publisher destinations, custom AL telemetry, and correlated operation outcomes in Application Insights. It turns an extension failure into evidence that supports a bounded diagnosis and a justified maintenance decision.
What you learned
Environment-level telemetry serves environment administration, while
applicationInsightsConnectionStringinapp.jsonserves extension-publisher telemetry.TelemetryScope::ExtensionPublishertargets the publisher destination, whileTelemetryScope::Allmakes an event eligible for all configured scopes.Session.LogMessagecustom events useDataClassification::SystemMetadata, stable app-prefixed event IDs, safe dimensions, and a deliberate verbosity.Business Central emits the
ALevent-ID prefix andalcustom-dimension prefix, which your KQL uses when it readstraces.A shared operation GUID connects started and terminal events so you can distinguish successful, failed, and incomplete sequences.
An investigation record keeps configuration, query, evidence, diagnosis, and recommendation separate and reviewable.
Learn more
Clean up resources
Uninstall the sample extension from the sandbox, then unpublish its package when you no longer need it. Coordinate with the administrator to restore the sandbox's previous telemetry setting, including leaving telemetry disabled if that was its original state, and plan for any restart. Remove exercise connection strings from the local sample project according to your organization's configuration policy. Preserve shared Application Insights resources, workspaces, unrelated settings, and retained telemetry; follow the facilitator's access and retention plan rather than deleting shared resources or changing retention.