{"id":8127,"date":"2020-02-03T08:25:11","date_gmt":"2020-02-03T16:25:11","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/log-telemetry-for-your-apps-using-azure-application-insights\/"},"modified":"2025-06-11T08:00:24","modified_gmt":"2025-06-11T15:00:24","slug":"log-telemetry-for-your-apps-using-azure-application-insights","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/log-telemetry-for-your-apps-using-azure-application-insights\/","title":{"rendered":"Log telemetry for your Apps using Azure Application Insights"},"content":{"rendered":"<p>I\u2019m thrilled to announce a new instrumentation feature to allow makers collect detailed telemetry for their Canvas apps. Would you like to know how many people are using your App, where they are accessing it from, what screens are most visited, the devices or browsers that are most popular? Or maybe you want to monitor all errors presented to your users, and using this data, get automatically alerted if errors suddenly increase? With your app connected to Azure Applications Insights, you can now begin to gather this information to help you drive better business decisions and improve the quality of your apps.<br \/>\n\u00a0<\/p>\n<h2>Getting started<\/h2>\n<p>Before you can send telemetry for an app, you will need to create an Azure Application Insights resource to store the events. To create an App Insights resource, you can follow the documentation <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-monitor\/app\/create-new-resource\">here<\/a>. After you create your App Insights resource, you are going to need the instrumentation key so copy or take a note of this value.<\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-8133\" height=\"1189\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png\" width=\"2996\" srcset=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AIInstrumentationKey-1.webp 2996w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AIInstrumentationKey-1-300x119.webp 300w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AIInstrumentationKey-1-1024x406.webp 1024w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AIInstrumentationKey-1-768x305.webp 768w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AIInstrumentationKey-1-1536x610.webp 1536w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AIInstrumentationKey-1-2048x813.webp 2048w\" sizes=\"auto, (max-width: 2996px) 100vw, 2996px\" \/><\/p>\n<p>\u00a0<\/p>\n<h2>Connect your app to Application Insights<\/h2>\n<p style=\"background: white; margin: 9.0pt 0cm 9.0pt 0cm;\"><span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\">Open your app and the select the App object. In the App object panel, update the Instrumentation key property to your Azure App Insights instrumentation key. After you update the instrumentation key, save and publish your app.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone wp-image-8149 size-medium\" height=\"225\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIKey-300x225.png\" width=\"300\"\/><\/p>\n<p>Great! That\u2019s all you need to start gathering telemetry for the app! Play the published app and navigate to various screens. \u00a0Screen navigation events will get automatically logged to App Insights along with usage information on where the app is getting accessed from and on which devices and browsers. Let\u2019s view the events and see the insights you have generated from adding the instrumentation key to your app.<\/p>\n<p>\u00a0<\/p>\n<h2>Viewing events in App Insights<\/h2>\n<p>Open the App Insights resource you created and select Users in the left navigation menu. In this view, you can see how many people have used the app (these are not unique users, but I\u2019ll have more about that later), the number of sessions for the app and the number of events logged. Details about where the users are located and the browsers and operating systems they use are also displayed. Drilling into one of the user sessions, you can explore detailed information such as the session length, the screens visited and also low-level transaction details.<\/p>\n<p>In the Events view, you get a summary of all the screens viewed across all app sessions. You can use this information to analyse and understand screen usage or feature adoption in your app and make data-driven based decisions on your next features. For example, you may want to stop future investments on specific screens due to low usage and prioritize other features in the app.<\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-8130\" height=\"1080\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AppInsights.gif\" width=\"1888\"\/><\/p>\n<p>\u00a0<\/p>\n<p style=\"background: white; margin: 9.0pt 0cm 9.0pt 0cm;\"><span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\">User Flows is another great visual which shows how users navigate around your app. You can use this view to analyze the most used navigation paths. Can you reduce clicks and optimize the paths to the most popular features for your end-users?\u00a0<\/span><\/p>\n<p>\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-8136\" height=\"1318\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/UserFlows.png\" width=\"2998\" srcset=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/UserFlows.webp 2998w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/UserFlows-300x132.webp 300w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/UserFlows-1024x450.webp 1024w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/UserFlows-768x338.webp 768w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/UserFlows-1536x675.webp 1536w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/UserFlows-2048x900.webp 2048w\" sizes=\"auto, (max-width: 2998px) 100vw, 2998px\" \/><br \/>\n<span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\">I\u2019ve just given you a small sample of the capabilities in App Insights. App performance, Funnels and Cohorts and plenty more out-of-box features of App Insights can be further explored <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-monitor\/app\/usage-segmentation\"><span style=\"color: #333333; text-decoration: none; text-underline: none;\">here<\/span><\/a>.<\/span><\/p>\n<p>\u00a0<\/p>\n<h2>Custom Logging<\/h2>\n<p>Using the new <strong><a href=\"https:\/\/docs.microsoft.com\/en-us\/powerapps\/maker\/canvas-apps\/functions\/function-trace\">Trace<\/a> <\/strong>function, you can also write custom traces directly to App Insights and start to analyze information specific to your scenario. Use <em>Trace<\/em> to provide more granular usage information for controls on screens, which specific users are accessing your app or even what errors are occurring. Tracing can also help diagnose various issues as you can send a trail of information as your users navigate through your app and perform various actions.<\/p>\n<p>The <em>Trace <\/em>function accepts a custom message, a severity level and a custom record containing data which will be logged as custom dimensions for the event to App Insights. As well as the custom dimensions you define for each Trace event, the platform will also add a set of default dimensions to every event raised \u2013 these are the ms-appSessionId, ms-appName and the ms-appId and they can be used to help you determine the app and session the event correlates to.<\/p>\n<p>So, what can I log? Well, anything really.\u00a0<span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\">For example, you might want to record every time a user selects a button in your app, or every time a new feature is used, or the email address of the <\/span><span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\">users accessing your app. <\/span><br \/>\n<span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\"><strong>Note<\/strong>:\u00a0<\/span><span style=\"font-family: 'Segoe UI', sans-serif; font-size: 11.5pt;\">If you are logging any personnel data, you will need to consider any data compliance obligations, such as GDPR, that you may also need to implement.\u00a0<\/span><br \/>\n<span style=\"font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: #333333;\">Below is an example of a Trace expression\u00a0I can add to the App OnStart event to gather user login information.\u00a0<\/span><br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-8137\" height=\"918\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AppOnStart.jpg\" width=\"1508\" srcset=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AppOnStart.jpg 1508w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AppOnStart-300x183.jpg 300w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AppOnStart-1024x623.jpg 1024w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/AppOnStart-768x468.jpg 768w\" sizes=\"auto, (max-width: 1508px) 100vw, 1508px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>Maybe you want to know how many errors happen in your app or how many times a record failed to write to your data source.\u00a0 I can use the <a href=\"https:\/\/docs.microsoft.com\/en-us\/powerapps\/maker\/canvas-apps\/functions\/function-errors\">Errors<\/a> function to check for a Patch error when writing a record and then log an event if any patch errors happened.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone wp-image-8142 size-large\" height=\"436\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/Errors-2-1024x850.png\" width=\"525\"\/><\/p>\n<p>From App Insights, I can then create an alert to automatically notify me if errors get logged, or if there was a sudden increase in errors experienced in the app.<\/p>\n<p>Now, after publishing and playing the app again, you will see new events generated in App Insights. These events will be displayed in the session details or you can directly query them from the Logs.<\/p>\n<p>\u00a0<\/p>\n<h2>Querying Application Insights Logs<\/h2>\n<p>If you want to go deeper and leverage the full power of the data you are collecting, you will likely need to write log queries to analyze the App Insights data tables.\u00a0 Log queries are extremely powerful and you can use them to join multiple tables, aggregate large amounts of data and perform complex operations. You can learn more about Log queries\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/azure-monitor\/log-query\/log-query-overview\">here.\u00a0<\/a><\/p>\n<p>Using the Trace expressions I wrote above,\u00a0 I&#8217;d like to know which specific users experienced an error when saving my data, and at what time those errors occurred. To get this, open the Logs in the Monitoring section in the left menu,\u00a0and in the window write the query below .<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" class=\"alignnone size-full wp-image-8140\" height=\"1504\" src=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/Errors-1.png\" width=\"2998\" srcset=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/Errors-1.webp 2998w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/Errors-1-300x151.webp 300w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/Errors-1-1024x514.webp 1024w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/Errors-1-768x385.webp 768w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/Errors-1-1536x771.webp 1536w, https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/02\/Errors-1-2048x1027.webp 2048w\" sizes=\"auto, (max-width: 2998px) 100vw, 2998px\" \/><\/p>\n<p>\u00a0<\/p>\n<p>From the results, I can see 3 users received an error when saving data. In total, there have been 12 errors, and one user (yes, that&#8217;s me!) received 5 errors within a 30 min time frame.\u00a0 Using one of the sessions Id&#8217;s displayed, I could dive further into the various Trace and screen navigation events that happened for a session which had an error.<\/p>\n<div>\n<div>union *<\/div>\n<div>| where session_Id == &#8220;B2Xh+&#8221;<\/div>\n<div>| order by timestamp desc<\/div>\n<\/div>\n<div><\/div>\n<div><\/div>\n<div>\u00a0<\/p>\n<h2>Other improvements coming<\/h2>\n<p>Earlier in the blog, I mentioned that the User counts displayed in the usage report in App Insights did not reflect unique users. We are working to fix this and pass a unique User Id with the App Insight events logged. We will also send the Power Apps session id which is visible to end users (accessed on the session details dialog screen) which will help you further analyze the user session information and any errors that occurred.<\/p>\n<p>With instrumentation, you can begin to understand your app usage, performance and identify issues that may have gone unnoticed. Are there additional out-of-box events or dimensions you would like to see added? What scenarios are you trying to collect telemetry for that we could make easier? We&#8217;d love to hear your feedback and what you think about the feature!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Configure and instrument your apps to write telemetry data to Azure Application Insights where you can analyze the usage, performance and health of your app.<\/p>\n","protected":false},"author":89,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","ms-ems-related-posts":[],"footnotes":""},"audience":[3378],"content-type":[],"job-role":[],"product":[3473],"property":[],"topic":[3421,3422],"coauthors":[2153],"class_list":["post-8127","post","type-post","status-publish","format-standard","hentry","audience-it-professional","product-power-apps","topic-application-modernization","topic-hyperautomation"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Log telemetry for your Apps using Azure Application Insights - Microsoft Power Platform Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Log telemetry for your Apps using Azure Application Insights - Microsoft Power Platform Blog\" \/>\n<meta property=\"og:description\" content=\"Configure and instrument your apps to write telemetry data to Azure Application Insights where you can analyze the usage, performance and health of your app.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/log-telemetry-for-your-apps-using-azure-application-insights\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Power Platform Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-03T16:25:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-11T15:00:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2996\" \/>\n\t<meta property=\"og:image:height\" content=\"1189\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aengus Heaney\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aengus Heaney\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/\"},\"author\":[{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/aengus-heaney\/\",\"@type\":\"Person\",\"@name\":\"Aengus Heaney\"}],\"headline\":\"Log telemetry for your Apps using Azure Application Insights\",\"datePublished\":\"2020-02-03T16:25:11+00:00\",\"dateModified\":\"2025-06-11T15:00:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/\"},\"wordCount\":1222,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/\",\"name\":\"Log telemetry for your Apps using Azure Application Insights - Microsoft Power Platform Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png\",\"datePublished\":\"2020-02-03T16:25:11+00:00\",\"dateModified\":\"2025-06-11T15:00:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage\",\"url\":\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png\",\"contentUrl\":\"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Log telemetry for your Apps using Azure Application Insights\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\",\"name\":\"Microsoft Power Platform Blog\",\"description\":\"Innovate with Business Apps\",\"publisher\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization\",\"name\":\"Microsoft Power Platform Blog\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png\",\"contentUrl\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png\",\"width\":194,\"height\":145,\"caption\":\"Microsoft Power Platform Blog\"},\"image\":{\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/person\/9c933c79306ac4d38ee3d2c36f6db1e8\",\"name\":\"Aengus Heaney\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/ac2addc714e4deaf1aa5a627336db1e12b9dc7e05695a4fd0f58136bd28db830?s=96&d=mm&r=g7ee8ffd46f7176a5b3af28d2ffe2c840\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ac2addc714e4deaf1aa5a627336db1e12b9dc7e05695a4fd0f58136bd28db830?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ac2addc714e4deaf1aa5a627336db1e12b9dc7e05695a4fd0f58136bd28db830?s=96&d=mm&r=g\",\"caption\":\"Aengus Heaney\"},\"url\":\"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/aheaney\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Log telemetry for your Apps using Azure Application Insights - Microsoft Power Platform Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/","og_locale":"en_US","og_type":"article","og_title":"Log telemetry for your Apps using Azure Application Insights - Microsoft Power Platform Blog","og_description":"Configure and instrument your apps to write telemetry data to Azure Application Insights where you can analyze the usage, performance and health of your app.","og_url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/log-telemetry-for-your-apps-using-azure-application-insights\/","og_site_name":"Microsoft Power Platform Blog","article_published_time":"2020-02-03T16:25:11+00:00","article_modified_time":"2025-06-11T15:00:24+00:00","og_image":[{"width":2996,"height":1189,"url":"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png","type":"image\/png"}],"author":"Aengus Heaney","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Aengus Heaney","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#article","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/"},"author":[{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/aengus-heaney\/","@type":"Person","@name":"Aengus Heaney"}],"headline":"Log telemetry for your Apps using Azure Application Insights","datePublished":"2020-02-03T16:25:11+00:00","dateModified":"2025-06-11T15:00:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/"},"wordCount":1222,"commentCount":0,"publisher":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage"},"thumbnailUrl":"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/","name":"Log telemetry for your Apps using Azure Application Insights - Microsoft Power Platform Blog","isPartOf":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage"},"thumbnailUrl":"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png","datePublished":"2020-02-03T16:25:11+00:00","dateModified":"2025-06-11T15:00:24+00:00","breadcrumb":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#primaryimage","url":"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png","contentUrl":"https:\/\/powerappsblogmedia.azureedge.net\/powerappsblog\/2020\/02\/AIInstrumentationKey-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/2020\/02\/03\/log-telemetry-for-your-apps-using-azure-application-insights\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/"},{"@type":"ListItem","position":2,"name":"Log telemetry for your Apps using Azure Application Insights"}]},{"@type":"WebSite","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#website","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/","name":"Microsoft Power Platform Blog","description":"Innovate with Business Apps","publisher":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#organization","name":"Microsoft Power Platform Blog","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png","contentUrl":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-content\/uploads\/2020\/03\/Microsoft-Logo-e1685482038800.png","width":194,"height":145,"caption":"Microsoft Power Platform Blog"},"image":{"@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/#\/schema\/person\/9c933c79306ac4d38ee3d2c36f6db1e8","name":"Aengus Heaney","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ac2addc714e4deaf1aa5a627336db1e12b9dc7e05695a4fd0f58136bd28db830?s=96&d=mm&r=g7ee8ffd46f7176a5b3af28d2ffe2c840","url":"https:\/\/secure.gravatar.com\/avatar\/ac2addc714e4deaf1aa5a627336db1e12b9dc7e05695a4fd0f58136bd28db830?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ac2addc714e4deaf1aa5a627336db1e12b9dc7e05695a4fd0f58136bd28db830?s=96&d=mm&r=g","caption":"Aengus Heaney"},"url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/author\/aheaney\/"}]}},"bloginabox_animated_featured_image":null,"bloginabox_display_generated_audio":false,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Power Platform Blog","distributor_original_site_url":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/8127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/comments?post=8127"}],"version-history":[{"count":1,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/8127\/revisions"}],"predecessor-version":[{"id":130689,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/posts\/8127\/revisions\/130689"}],"wp:attachment":[{"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/media?parent=8127"}],"wp:term":[{"taxonomy":"audience","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/audience?post=8127"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/content-type?post=8127"},{"taxonomy":"job-role","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/job-role?post=8127"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/product?post=8127"},{"taxonomy":"property","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/property?post=8127"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/topic?post=8127"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/wp-json\/wp\/v2\/coauthors?post=8127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}