{"title":"TelemetryScope option type","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/telemetryscope/telemetryscope-option/","by":"JOP-AL","license":"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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/telemetryscope/telemetryscope-option","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Represents the emission scope of the telemetry signal.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"TelemetryScope option type","slug":"telemetryscope-option-type","at":0,"chars":1565},{"level":2,"title":"Members","slug":"members","at":144,"chars":177},{"level":2,"title":"Examples","slug":"examples","at":321,"chars":1010},{"level":2,"title":"Related information","slug":"related-information","at":1331,"chars":234}],"text":"# TelemetryScope option type\n> Version: _Available or changed with runtime version 5.4._\nRepresents the emission scope of the telemetry signal.\n## Members\nMember|Description\nExtensionPublisher|Emit telemetry to extensions publisher's account.\nAll|Emit telemetry to extension publisher's and partner's telemetry account .\n## Examples\nThe 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>.\n```al\nSession.LogMessage('0000ABC', 'Order processed successfully', Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'OrderProcessing');\n```\nThe 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>.\n```al\nSession.LogMessage('0000DEF', 'Critical inventory level reached', Verbosity::Warning, DataClassification::SystemMetadata, TelemetryScope::All, 'InventoryManagement');\n```\n## Related information\nGet Started with AL<../../devenv-get-started>\nDeveloping Extensions<../../devenv-dev-overview>\n../session/session-logmessage-string-string-verbosity-dataclassification-telemetryscope-dictionary[text,text]-method"}