{"title":"Analyzing AI consumption trace telemetry","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/telemetry-ai-consumption/","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/administration/telemetry-ai-consumption, 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/administration/telemetry-ai-consumption","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":"Learn about the AI Consumption telemetry in Business Central.","date":"2026-06-22","meta":{"topic":"concept-article"},"outline":[{"level":1,"title":"Analyzing AI consumption trace telemetry","slug":"analyzing-ai-consumption-trace-telemetry","at":0,"chars":3461},{"level":2,"title":"AI consumption recorded","slug":"ai-consumption-recorded","at":259,"chars":2981},{"level":3,"title":"General dimensions","slug":"general-dimensions","at":579,"chars":86},{"level":3,"title":"Custom dimensions","slug":"custom-dimensions","at":665,"chars":1946},{"level":3,"title":"Sample KQL code","slug":"sample-kql-code","at":2611,"chars":629},{"level":2,"title":"Related information","slug":"related-information","at":3240,"chars":221}],"text":"# Analyzing AI consumption trace telemetry\n> APPLIES TO: Business Central online\nEnvironment lifecycle telemetry gathers data about the Copilot Credits consumed by features subject to consumption-based billing<tenant-admin-center-manage-consumption-billing>.\n## AI consumption recorded\nOccurs when Copilot Credits are consumed. The event reports consumption data for all features that use consumption-based billing through environment telemetry. For extension telemetry, it reports only consumption associated with agents that are published to an environment as part of the app.\n### General dimensions\nDimension|Description or value\nmessage|AI Consumption Recorded\n### Custom dimensions\nDimension|Description or value\naadTenantId|Specifies the Microsoft Entra tenant ID used for Microsoft Entra authentication. For on-premises, if you aren't using Microsoft Entra authentication, this value is common.\nactions|The action that consumed Copilot Credits, for example 'Outbound Message' for Sales Order Agent\nagentTaskId|The task ID of the agent task that consumed Copilot Credits\ncompanyName|The name of the company in which the agent that consumed Copilot Credits ran\ncomponent|Dynamics 365 Business Central Server\ncomponentVersion|The version number of the Dynamics 365 Business Central server\nconsumptionDateTime|The date and time at which Copilot Credit consumption was recorded\ncopilotCredits|The number of Copilot Credits consumed for the recorded action\ncopilotStudioFeature|The Copilot Studio Agent feature<https://learn.microsoft.com/microsoft-copilot-studio/requirements-messages-management#copilot-credits-billing-rates> used to record Copilot consumption\ndescription|A description of the action that consumed Copilot Credits\nenvironmentName|Specifies the name of the tenant environment. See Managing Environments<tenant-admin-center-environments>.\nenvironmentType|Specifies the environment type for the tenant, such as Production or Sandbox. See tenant-admin-center-environments#types-of-environments.\neventId|RT0055\nextensionId|The extension ID of the app associated with the agent that consumed Copilot Credits\nextensionName|The name of the extension associated with the agent that consumed Copilot Credits\nextensionPublisher|The publisher name for the extension associated with the agent that consumed Copilot Credits\nextensionVersion|The version number of the extension associated with the agent that consumed Copilot Credits\nexternalConsumptionId|A GUID representing the Copilot Credit consumption event\nfeatureName|Name of the feature that consumed the Copilot Credits\ntelemetrySchemaVersion|0.2\n### Sample KQL code\nThis KQL code can help you get started analyzing consumed Copilot Credits:\n```kql\ntraces\n| where timestamp > ago(30d) // adjust as needed\n| where customDimensions.eventId == 'RT0055'\n| project timestamp\n, message\n, aadTenantId = customDimensions.aadTenantId\n, actions = customDimensions.actions\n, agentTaskId = customDimensions.agentTaskId\n, environmentName = customDimensions.environmentName\n, environmentType = customDimensions.environmentType\n, copilotCredits = customDimensions.copilotCredits\n, copilotStudioFeature = customDimensions.copilotStudioFeature\n, featureName = customDimensions.featureName\n```\n## Related information\nManage consumption-based billing for agent capabilities<tenant-admin-center-manage-consumption-billing>\ntelemetry-overview\nTurn environment telemetry on or off<telemetry-enable-application-insights>"}