Application Insights Code Optimizations for .NET Apps

Wait 5 sec.

As engineers we know how frustrating it can be to chase and fix performance issues without clear guidance. That’s why we built Application Insights Code Optimizations — to give you actionable insights, reduce the guesswork, and help you focus on what you do best: building great software.What does it do?To help you tackle performance issues with confidence, the Application Insights Code Optimizations surfaces meaningful insights without the need for deep-dive profiling sessions. It helps you reduce toil for optimizing performance of your .NET applications by automatically analyzing runtime profiler traces, identifying CPU and memory bottlenecks, and delivering actionable, code-level recommendations through GitHub Copilot. How Does It Work?Code Optimizations integrates directly with the Application Insights .NET Profiler. It meticulously analyzes trace data from your running application to identify inefficiencies. These insights are then presented as clear, actionable recommendations within the Azure portal.Seamless Integration with Your WorkflowYou can seamlessly integrate these recommendations into your development process. Track them as work items in Azure DevOps or your preferred tool and leverage the power of GitHub Copilot in Visual Studio or Visual Studio Code to get code-level suggestions grounded in the trace analysis.Furthermore, Code Optimizations extends into the GitHub Copilot coding agent, allowing you to explore various performance-tested remediation options and collaborate on the best fix. It’s no surprise that over half of our users are assigning the GitHub Issues generated from these insights directly to the GitHub Copilot coding agent to accelerate their optimization tasks. Try it now! Check out our full documentationSee It in ActionCheck out the Azure Friday session with Scott Hanselman to see a live demonstration of Code Optimizations and witness how it can transform your performance tuning process.What’s New?We are excited to share some new enhancements:Blocking Insights: Code Optimizations now identifies issues that prevent threads from executing—such as synchronous operations within asynchronous workflows. Previously, recommendations were limited to threads that were actively running; now, you it can help you identify problems affecting threads that are blocked or waiting.Direct GitHub Copilot Assignment: You can now assign GitHub issues to the GitHub Copilot coding agent directly from the code optimizations page. We’ve also enabled this from the Application Insights Failures crash analysis blade (snapshot debugger), streamlining your debugging and optimization workflow.OpenTelemetry Support (Preview): As OpenTelemetry adoption grows, we are thrilled to announce that you can now use the .NET Profiler for OpenTelemetry (Preview). This allows you to gain valuable performance insights without needing to add any additional SDKs to your applications, simplifying your instrumentation strategy. Get Started TodayReady to take your application performance to the next level? Getting started with Code Optimizations is easy. If you are already using Application Insights, you just enable the .NET Profiler for your application. For new applications, you can enable it as part of the Application Insights setup.Let’s Build This TogetherWe built Code Optimizations to make performance tuning easier, faster, and more impactful for developers like you. But this is just the beginning. I’d love to hear how it’s working for you, what’s missing, and what you’d like to see next. Your feedback helps us shape the future of this experience—so don’t hold back! Drop us a note at https://aka.ms/CodeOptimizations/Feedback and let’s keep making this better, together.Call to ActionEnable Code Optimizations in your Application Insights resource today and start receiving performance recommendations.Watch our Azure Friday session to learn more.Join the conversation and provide your feedback to help shape the future of this service.The post Application Insights Code Optimizations for .NET Apps appeared first on .NET Blog.