# TelemetryScope option type
> 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. See Set up telemetry in an extension<../../devenv-application-insights-for-extensions>.
```al
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. See Turn environment telemetry on or off<../../../administration/telemetry-enable-application-insights>.
```al
Session.LogMessage('0000DEF', 'Critical inventory level reached', Verbosity::Warning, DataClassification::SystemMetadata, TelemetryScope::All, 'InventoryManagement');
```
## Related information
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>
../session/session-logmessage-string-string-verbosity-dataclassification-telemetryscope-dictionary[text,text]-method

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/telemetryscope/telemetryscope-option, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/telemetryscope/telemetryscope-option/
