Azure Application Insights
Azure Application Insights is a service that can help your team gain insights into the usage, reliability and performance of your live Node.js Express applications.
The Application Insights extension for Visual Studio Code brings information from your production services right into your code editor to help you find and fix issues faster.
Request data in CodeLens
Three request metrics are available in CodeLens in Visual Studio Code. Each shows data from the last 24 hours as measured by the Application Insights resource you set up with Visual Studio Code:
Enable Application Insights telemetry collection in your Express app with a simple command in Visual Studio Code.
Getting started with Express and Application Insights
Create an Express app
Get started by installing the Express generator, creating a new app, and opening it in Visual Studio Code:
Onboard with Application Insights
Run the 'Add to Project' command to register your app with Application Insights.
This command guides you through creating (or selecting) an Azure resource for your telemetry. It also adds the required packages/code to start collecting telemetry data and showing it in CodeLens. Run your app or deploy it to start seeing telemetry in Visual Studio Code and the Azure Portal.
Application Insights resources are free for the first gigabyte of data per month. See Application Insights Pricing for more details.
See CodeLens on request definitions
Click on the CodeLens indicator to see more details.
See CodeLens data from a different Application Insights Resource
If you want CodeLens to show data from a different resource than the one you onboarded from, then run the 'Choose CodeLens resource' command. This is a common scenario when you have different resources for your development and production environment.
The Microsoft Online Services Privacy Statement describes the privacy statement of this software.
If you don’t wish to send usage data to Microsoft, add the environment variable AITOOLSVSCODE_DISABLETELEMETRY.
The extension is made available under the Microsoft Software License Terms. Please see the third-party notices file for additional copyright notices and license terms applicable to portions of the software.