{"id":5130,"date":"2015-10-22T00:00:00","date_gmt":"2015-10-22T00:00:00","guid":{"rendered":"https:\/\/azure.microsoft.com\/blog\/sampling-in-application-insights"},"modified":"2025-09-17T09:57:20","modified_gmt":"2025-09-17T16:57:20","slug":"sampling-in-application-insights","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/","title":{"rendered":"Sampling in Application Insights: How to keep the volume of your telemetry under control"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price. In addition to dealing with an increased cost of storing more data in Application Insights, your application will have higher network consumption, and the performance impact from monitoring may be high.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Moreover, when the volume of telemetry surpasses <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=691451\">throttling limits<\/a>, Application Insights will start dropping the data. When this happens, your application telemetry goes totally out of control. The metrics no longer reflect accurate values and the diagnostic experience is busted since the telemetry item you&#8217;re looking for could have been throttled out. To give you control of the volume of collected data, and to protect against the issues from generating too much of telemetry, a recent release of <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkID=691452\">Application Insights SDK 2 beta<\/a> introduces the concept of <em>sampling<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">From the application standpoint, sampling is a feature of the SDK that allows you to collect and store a reduced set of telemetry while maintaining a statistically correct analysis of application data in the portal. Currently, sampling can be used with ASP.NET web applications on both client and server sides, or only from the client-side for web applications written with other (non .NET) server-side platforms.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Learn more&nbsp;about how sampling&nbsp;can help you keep the volume of application telemetry down and also&nbsp;how to configure sampling with your web applications <a href=\"https:\/\/azure.microsoft.com\/en-us\/documentation\/articles\/app-insights-sampling\/\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1467],"tags":[],"audience":[3055,3056],"content-type":[1511],"product":[2902],"tech-community":[],"topic":[],"coauthors":[354],"class_list":["post-5130","post","type-post","status-publish","format-standard","hentry","category-compute","audience-developers","audience-it-implementors","content-type-best-practices","product-app-service","review-flag-2-1680286581-601","review-flag-alway-1680286580-106"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Sampling in Application Insights: How to keep the volume of your telemetry under control | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Sampling in Application Insights: How to keep the volume of your telemetry under control | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-22T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-17T16:57:20+00:00\" \/>\n<meta name=\"author\" content=\"Vitaly Gorbenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vitaly Gorbenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/vitaly-gorbenko\/\",\"@type\":\"Person\",\"@name\":\"Vitaly Gorbenko\"}],\"headline\":\"Sampling in Application Insights: How to keep the volume of your telemetry under control\",\"datePublished\":\"2015-10-22T00:00:00+00:00\",\"dateModified\":\"2025-09-17T16:57:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\"},\"wordCount\":270,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"articleSection\":[\"Compute\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\",\"name\":\"Sampling in Application Insights: How to keep the volume of your telemetry under control | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"datePublished\":\"2015-10-22T00:00:00+00:00\",\"dateModified\":\"2025-09-17T16:57:20+00:00\",\"description\":\"Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Compute\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/compute\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sampling in Application Insights: How to keep the volume of your telemetry under control\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Sampling in Application Insights: How to keep the volume of your telemetry under control | Microsoft Azure Blog","description":"Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.","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:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/","og_locale":"en_US","og_type":"article","og_title":"Sampling in Application Insights: How to keep the volume of your telemetry under control | Microsoft Azure Blog","og_description":"Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2015-10-22T00:00:00+00:00","article_modified_time":"2025-09-17T16:57:20+00:00","author":"Vitaly Gorbenko","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Vitaly Gorbenko","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/vitaly-gorbenko\/","@type":"Person","@name":"Vitaly Gorbenko"}],"headline":"Sampling in Application Insights: How to keep the volume of your telemetry under control","datePublished":"2015-10-22T00:00:00+00:00","dateModified":"2025-09-17T16:57:20+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/"},"wordCount":270,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"articleSection":["Compute"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/","name":"Sampling in Application Insights: How to keep the volume of your telemetry under control | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"datePublished":"2015-10-22T00:00:00+00:00","dateModified":"2025-09-17T16:57:20+00:00","description":"Modern applications with many users can generate a lot of telemetry data. While it is a pretty common (and almost always wrong) perception that you absolutely must collect every piece of the application telemetry, doing so may come at a high price.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/sampling-in-application-insights\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"Compute","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/compute\/"},{"@type":"ListItem","position":3,"name":"Sampling in Application Insights: How to keep the volume of your telemetry under control"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/5130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=5130"}],"version-history":[{"count":1,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/5130\/revisions"}],"predecessor-version":[{"id":46524,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/5130\/revisions\/46524"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=5130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=5130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=5130"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=5130"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=5130"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=5130"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=5130"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=5130"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=5130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}