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.
Any insight or guidance on this setup would be greatly appreciated!
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:
Yes, you only get full telemetry by configuring the connection string on the environment.
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.