Datadog for VS Code
The Datadog extension for VS Code integrates with Datadog to accelerate your development.
The Datadog extension packs several features including:
The Code Insights tree displays insights generated by the Datadog platform that are relevant to your code-base. The Code Insights can be grouped by category, kind, priority, and file.
Code Insights include a detailed description for each issue, and links to:
You can dismiss individual Code Insights and set filters to only view the ones you are most interested in.
The Datadog extension enables you to run Synthetic HTTP tests and browser tests on local environments directly in VS Code. You can identify and address potential issues resulting from code changes before they are deployed into production and impact your end users.
Run Synthetic tests locally
If you haven't set up Synthetic tests already, create a test in Datadog. For more information about running tests on a local environment, see Getting Started with API Tests, Getting Started with Browser Tests, and the Continuous Testing Tunnel documentation.
By default, only users with the Datadog Admin and Datadog Standard roles can create, edit, and delete Synthetic HTTP and browser tests. To get create, edit, and delete access to Synthetic HTTP and browser tests, upgrade your user to one of those two default roles.
If you are using the custom role feature, add your user to any custom role that includes
View in VS Code
The View in VS Code feature provides a link from Datadog directly to your source files. Look for the button next to frames in stack traces displayed in the UI (for example, in Error Tracking):
Code Delta matches the line numbers included in Datadog telemetry to the line numbers of the files you are currently working in VS Code.
For example, all View in VS Code links on the Datadog platform encodes runtime version info, and the extension uses that to compute the corresponding line of code in your editor, taking into account version changes.
You can tweak the Code Delta settings to change how the matching algorithm works. In particular, you can modify the
Please read this End-User License Agreement carefully before downloading or using the Datadog Visual Studio Code Extension.
Data and Telemetry
If you don't wish to send this data to Datadog, you can opt out at any time in the extension settings:
If you disable the VS Code telemetry the Datadog extension will respect this setting.
Help and Feedback
Check out the issues section to discover known issues.