{"id":763,"date":"2014-09-03T16:10:59","date_gmt":"2014-09-03T16:10:59","guid":{"rendered":"/__p/blogs.msdn.microsoft.com\/visualstudioalm\/2014\/09\/03\/application-insights-sdk-0-10-0-prerelease\/"},"modified":"2022-05-26T06:55:40","modified_gmt":"2022-05-26T14:55:40","slug":"application-insights-sdk-0-10-0-prerelease","status":"publish","type":"post","link":"/__p/devblogs.microsoft.com\/devops\/application-insights-sdk-0-10-0-prerelease\/","title":{"rendered":"Application Insights SDK (0.10.0-prerelease)"},"content":{"rendered":"<h2><span lang=\"EN\">What is it?<\/h2>\n<\/p>\n<p><\/span><\/p>\n<p style=\"background: white\">\n  <a><\/a><a><span><span lang=\"EN\">Application Insights SDK lets you send telemetry to the Application Insights portal, where you can find out what users are doing with your application.<\/span><\/span><\/a>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">0.10.0 is the latest SDK release for Application Insights. This SDK includes new functionality and new concepts in addition to a change in the basic architecture. <\/span>\n<\/p>\n<p style=\"background: white\">\n  <a><span lang=\"EN\">Data sent through this SDK will only be visible through the <\/span><\/a><a href=\"http:\/\/portal.azure.com\/\"><span><span lang=\"EN\">Microsoft Azure Preview Portal<\/span><\/span><\/a><span><span lang=\"EN\">. (Previous versions sent data to an earlier edition of Application Insights, which is part of Visual Studio Online.) To find out more information about the different versions of Application Insights please see the documentation <\/span><\/span><a href=\"/__p/msdn.microsoft.com\/en-us\/library\/dn793604.aspx\"><span><span lang=\"EN\">here<\/span><\/span><\/a><span><span lang=\"EN\">.<\/span><\/span>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">You can instrument these types of application: <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>1.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.ApplicationInsights.Web\/0.10.0-build17704\">ASP.NET web applications<\/a> <\/span><span style=\"color: #424242\">hosted either on premises or in Microsoft Azure.<\/span><span lang=\"EN\"> <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>2.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.ApplicationInsights.WindowsPhone\/0.10.0-build17704\">Windows Phone 8.0 (Silverlight) and 8.1 (Silverlight and WinRT)<\/a> \u2013 UI experience is coming soon. <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>3.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.ApplicationInsights.WindowsStore\/0.10.0-build17704\">Windows Store 8.1 applications<\/a> \u2013 UI experience is coming soon. <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>4.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\">Logging frameworks \u2013 Capture and search trace logging messages from multiple popular logging frameworks: <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 1in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>a.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.ApplicationInsights.TraceListener\/0.10.0-build17704\">System.Diagnostics.Trace<\/a> <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 1in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>b.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.ApplicationInsights.NLogTarget\/0.10.0-build17704\">Nlog<\/a> <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 1in;text-indent: -0.25in\">\n  <span class=\"MsoHyperlink\"><span lang=\"EN\"><span>c.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><\/span><span lang=\"EN\"><a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.ApplicationInsights.Log4NetAppender\/0.10.0-build17704\">Log4Net<\/a> <span class=\"MsoHyperlink\"><span style=\"text-decoration: none;color: #424242\"><\/span> <\/p>\n<p><\/span><\/span>\n<\/p>\n<p style=\"background: white;margin-left: 1in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>d.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span style=\"color: #424242\">Application Insights tracing API<\/span><span lang=\"EN\"> <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\"><span>5.<span>\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\">Web pages \u2013 <a href=\"/__p/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-monitor-application-health-usage\/#webclient\">Insert Javascript<\/a> to instrument client side web code. <\/span>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">The easiest way to acquire the AppInsights SDK is to add it to your project using Visual Studio 2013 Update 3. Alternatively, you can manually add the NuGet packages from the public NuGet feed. For more information see<\/span>\n<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:f87ab635-8945-4b93-8d6d-0d8656b6f7c6\" class=\"wlWriterEditableSmartContent\" style=\"float: none;padding-bottom: 0px;padding-top: 0px;padding-left: 0px;margin: 0px;padding-right: 0px\">\n  Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/insights\" rel=\"tag\">insights<\/a>\n<\/div>\n<p style=\"background: white\">\n  <span lang=\"EN\"><a href=\"/__p/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-get-started\/\"><span>Getting Started with Application Insights<\/span><\/a><span>.<\/span><\/span>\n<\/p>\n<p style=\"background: white\">\n  <b><span lang=\"EN\">Preview NOTE <\/span> <\/p>\n<p><\/b>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">This SDK is currently in a NuGet pre-release state. It includes new concepts and a new coding experience. Its API is evolving and will probably change in the future based on early adopter feedback.<\/span><strong><span lang=\"EN\"> <\/span> <\/p>\n<p><\/strong>\n<\/p>\n<h2><span lang=\"EN\">What will it do for me?<\/h2>\n<\/p>\n<p><\/span><\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">It lets you gather information about your application\u2019s usage and behavior in the wild. You can find out how people are using your app, understand what is failing, and identify areas for improvement. Since this is an early version, this is an opportunity for you to influence the direction of the SDK with your feedback, to make sure your requirements are addressed. <\/span>\n<\/p>\n<h2><span lang=\"EN\">Request Monitoring<\/span><\/h2>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">The Application Insights for Web SDK will automatically capture incoming server requests to your Asp.Net application. Collection of requests include statistics about each request, including the response time (per request, average per page, and standard deviation), total and request rate, the request URL and request failure rate. <\/span><span lang=\"EN\"><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span><a href=\"/__p/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/09\/0243.clip_image002_thumb_626FFFD6.jpg\"><img decoding=\"async\" title=\"clip_image002\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-top-width: 0px\" border=\"0\" alt=\"clip_image002\" src=\"/__p/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/09\/0243.clip_image002_thumb_626FFFD6.jpg\" width=\"692\" height=\"480\" \/><\/a><\/span>\n<\/p>\n<p class=\"MsoCaption\">\n  Server Request Monitoring<span lang=\"EN\"> <\/span>\n<\/p>\n<h2><span lang=\"EN\">Diagnostic Log Capture<\/span><\/h2>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">The Application Insights SDKs allow for capture and analysis of diagnostic logs. Through the inclusion of a logging framework specific adapter, you can configure the SDK to automatically capture all of your existing diagnostic logs.<\/span><span lang=\"EN\"> <\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">In addition to automatic capture from the logging framework adapters, you can also directly code against the SDK to emit basic trace messages. See the sample code below for a simple emission of a trace message.<\/span><span lang=\"EN\"> <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">var<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> tc = <\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">new<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> Microsoft.ApplicationInsights.<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #2b91af\">TelemetryContext<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">(); <\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black;line-height: 107%\">tc.TrackTrace(<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515;line-height: 107%\">&#8220;Sample message from the Contact page action&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black;line-height: 107%\">);<\/span><span style=\"font-size: 9.5pt;font-family: consolas;color: black;line-height: 107%\"> <\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;color: black;line-height: 107%\"><\/span>\n<\/p>\n<p>\u00a0<\/p>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">In addition to the specified message the SDK will also capture a set of automatic metadata to apply to this message. This common contextual data will assist in better understanding the telemetry and reaching richer insights. You can see below the additional contextual data captured along with this basic trace message. <\/span><span lang=\"EN\"><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span><a href=\"/__p/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/09\/4265.clip_image004_thumb_744C93A3.jpg\"><img decoding=\"async\" title=\"clip_image004\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-top-width: 0px\" border=\"0\" alt=\"clip_image004\" src=\"/__p/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/09\/4265.clip_image004_thumb_744C93A3.jpg\" width=\"829\" height=\"320\" \/><\/a><\/span>\n<\/p>\n<p class=\"MsoCaption\">\n  Diagnostic Search Details\n<\/p>\n<p class=\"MsoNormal\">\n  <span><span>\u00a0<\/span><span lang=\"EN\"> <\/span> <\/p>\n<p><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">More information can be found on the Azure documentation site on how to<\/span><span lang=\"EN\"> <\/span><span lang=\"EN\"><a href=\"/__p/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-search-diagnostic-logs\/\">Search Diagnostic Logs<\/a>. <\/span>\n<\/p>\n<h2><span lang=\"EN\">Javascript SDK<\/span><\/h2>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">If you have <a href=\"/__p/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-monitor-application-health-usage\/#webclient\">included the Javascript SDK<\/a> in your application web pages. You will also get out of the box collection of basic web client telemetry. Out of the box telemetry collection includes collection of page views, user sessions, page view urls, and browser versions. <\/span><span lang=\"EN\"><\/span>\n<\/p>\n<p class=\"MsoNormal\">\n  <span><a href=\"/__p/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/09\/3683.clip_image005_thumb_0FF11F9A.png\"><img decoding=\"async\" title=\"clip_image005\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;border-top-width: 0px\" border=\"0\" alt=\"clip_image005\" src=\"/__p/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2014\/09\/3683.clip_image005_thumb_0FF11F9A.png\" width=\"718\" height=\"426\" \/><\/a><\/span>\n<\/p>\n<p class=\"MsoCaption\">\n  Web Client Usage Analytics\n<\/p>\n<p class=\"MsoNormal\">\n  <span><span>\u00a0<\/span><span lang=\"EN\"> <\/span> <\/p>\n<p><\/span>\n<\/p>\n<h2><span lang=\"EN\">Custom Telemetry API &#8211; Preview<\/h2>\n<\/p>\n<p><\/span><\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">In addition to the automatic collection of telemetry described above the latest SDK version also includes a preview implementation of a custom telemetry API. You can use this API to collect any telemetry that may be useful to you. <\/span>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">The core object in the API is the TelemetryContext object. Allowing you to both hold common properties to apply to all telemetry, and basic access to the telemetry logging methods. The API exposes 4 helper methods to track various telemetry. They can be accessed directly to quickly send basic telemetry. <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">var<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> context = <\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">new<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> Microsoft.ApplicationInsights.<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #2b91af\">TelemetryContext<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">(); <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>context.TrackEvent(<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;My usage Event&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">); <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>context.TrackMetric(<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;MetricCounter&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">, 4.76); <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>context.TrackTrace(<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;Simple log message&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">); <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>context.TrackException(<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">new<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> <\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #2b91af\">Exception<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">(<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;SimpleException&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">)); <\/span>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">In addition you can create more complex telemetry by creating a telemetry item directly. <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">var<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> complexEvent = <\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: blue\">new<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"> Microsoft.ApplicationInsights.<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #2b91af\">EventTelemetry<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">(); <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>complexEvent.Name = <\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;ComplexEvent&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">; <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>complexEvent.Properties[<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;CustomProperty&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">] = <\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;AnyString&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">; <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>complexEvent.Metrics[<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;Metric1&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">] = 42; <\/span>\n<\/p>\n<p class=\"MsoNormal\" style=\"margin-bottom: 0pt;line-height: normal\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>complexEvent.Metrics[<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: #a31515\">&#8220;AnotherMetric&#8221;<\/span><span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\">] = 1.234; <\/span>\n<\/p>\n<p style=\"background: white\">\n  <span style=\"font-size: 9.5pt;font-family: consolas;background: white;color: black\"><span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span>context.Track(complexEvent);<\/span><span lang=\"EN\"> <\/span>\n<\/p>\n<p style=\"background: white\">\n  <span lang=\"EN\">We support 4 core telemetry types today. They all share a common design pattern, e.g. all have the ability to add custom properties, but each has a unique set of properties that better match the use scenario. <\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\" style=\"font-size: 9.5pt;font-family: symbol;color: #424242\"><span>\u00b7<span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\">Event \u2013 Used to track discrete actions. Most often used to track user behavior actions.<b> <\/b> <\/p>\n<p><\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\" style=\"font-size: 9.5pt;font-family: symbol;color: #424242\"><span>\u00b7<span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\">Metric \u2013 Used to compute numeric aggregation of values.<b> <\/b> <\/p>\n<p><\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\" style=\"font-size: 9.5pt;font-family: symbol;color: #424242\"><span>\u00b7<span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\">Trace \u2013 Used when the primary data is a message string and consumption of that string will be through textual search.<b> <\/b> <\/p>\n<p><\/span>\n<\/p>\n<p style=\"background: white;margin-left: 0.5in;text-indent: -0.25in\">\n  <span lang=\"EN\" style=\"font-size: 9.5pt;font-family: symbol;color: #424242\"><span>\u00b7<span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><\/span><\/span><span lang=\"EN\">Exception \u2013 Used to collect data about a thrown exception, including details like stack trace and throwing location.<b> <\/b> <\/p>\n<p><\/span>\n<\/p>\n<p style=\"background: white\">\n  <b><span lang=\"EN\">NOTE:<\/span><\/b><span lang=\"EN\"> This API is a preview release and is intended to capture feedback and is subject to breaking change in future SDK releases. Not all these telemetry types will be available for visualization in the UI. <\/span>\n<\/p>\n<h2><span lang=\"EN\">Windows Phone and Windows Store Apps \u2013 Preview<\/span><\/h2>\n<p class=\"MsoNormal\">\n  <span lang=\"EN\">Both Windows Phone 8.0\/8.1 and Windows Store 8.1 application are supported with dedicated NuGet packages. Both packages provide a similar set of functionality. Through simple addition of the NuGet package to your app you will get automatic collection of session starts, application crashes, page views, and the ability for custom telemetry described above. In addition, all telemetry will have additional properties collected automatically, identifying data such as anonymous used id, device id, device model, geo location, screen resolution, etc.<\/span><span lang=\"EN\"> <\/span>\n<\/p>\n<p><strong><span lang=\"EN\">NOTE<\/span><\/strong><span lang=\"EN\">: The pre-release NuGet packages collect all data described above, batch the data for transmission only on application startup \/ resume, and transmit to the AppInsights service. Currently the UI visualization support for Windows Phone and Windows Store Apps is still coming soon. While the data from these packages will be collected and transmitted, there is currently no UI visualization of that data available.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is it? Application Insights SDK lets you send telemetry to the Application Insights portal, where you can find out what users are doing with your application. 0.10.0 is the latest SDK release for Application Insights. This SDK includes new functionality and new concepts in addition to a change in the basic architecture. Data sent [&hellip;]<\/p>\n","protected":false},"author":100,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[224,1],"tags":[],"class_list":["post-763","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","category-devops"],"acf":[],"blog_post_summary":"<p>What is it? Application Insights SDK lets you send telemetry to the Application Insights portal, where you can find out what users are doing with your application. 0.10.0 is the latest SDK release for Application Insights. This SDK includes new functionality and new concepts in addition to a change in the basic architecture. Data sent [&hellip;]<\/p>\n","_links":{"self":[{"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/763","targetHints":{"allow":["GET"]}}],"collection":[{"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/100"}],"replies":[{"embeddable":true,"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":0,"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"/__p/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}