azureazure-application-insightsdynamics-business-central

Configure Azure Application Insights to capture severity level 3 telemetry in a Business Central extension


We’re creating a Business Central extension and want to receive telemetry from that extension. We’ve set up an Application Insights resource in Azure, and in our app.json, we’ve specified the applicationInsightsConnectionString. With that in place, we do receive various severity level 1 traces, but we’re mostly interested in severity level 3 logs.

However, severity level 3 logs only start appearing after we also configure the same connection string in the Business Central Admin Center.

  1. Is this the expected behavior—meaning you must configure the connection string in the Admin interface for higher severity logs?
  2. If so, does that mean we cannot get these error logs if our extension is installed on a third-party environment where we don’t have access to the Admin Center?

Any insight or guidance on this setup would be greatly appreciated!


Solution

  • Only telemetry directly related to your extension will be sent to the Application Insights referenced in app.json.

    The primary use case for this is for apps on AppSource to allow the developers to gather telemetry about their app across all environments it is installed on. Thus the telemetry is filtered to exclude anything not directly related to that app.

    To answer your questions:

    1. Yes, you only get full telemetry by configuring the connection string on the environment.

    2. You will get telemetry (including errors) if they are directly related to your extension.

    A complete overview of the telemetry emitted from an app can be found in the documentation.