Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Version: Available or changed with runtime version 5.4.
Represents the emission scope of the telemetry signal.
Members
| Member | Description |
|---|---|
| ExtensionPublisher | Emit telemetry to extensions publisher's account. |
| All | Emit telemetry to extension publisher's and partner's telemetry account . |
Examples
The following code example emits telemetry only to the extension publisher's Application Insights account. The extension publisher configures their Application Insights connection string in the extension's app.json file. Learn more in Setting up telemetry in an app/extension.
Session.LogMessage('0000ABC', 'Order processed successfully', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'OrderProcessing');
The following code example emits telemetry to both extension publisher's and partner's Application Insights accounts. The partner configures their Application Insights connection string in the Business Central admin center. Learn more in Turn environment telemetry on or off.
Session.LogMessage('0000DEF', 'Critical inventory level reached', Verbosity::Warning, DataClassification::SystemMetadata, TelemetryScope::All, 'InventoryManagement');
Related information
Get Started with AL
Developing Extensions
Session.LogMessage(Text, Text, Verbosity, DataClassification, TelemetryScope, Dictionary of [Text, Text]) Method