Datadog Extension for Visual Studio


The Datadog extension for Visual Studio helps you find and fix bugs, security issues, and performance bottlenecks based on real-time observability data from your services and runtime environments.

Datadog extension for Visual Studio

Code insights

Stay informed about Error Tracking issues, Security Vulnerabilities, and Flaky Tests without leaving Visual Studio.

The Code Insights view

Continuous Profiler

Analyze and improve the performance of your applications with real-time profiling metrics for CPU, Memory, I/O, and others.

The Code Insights view

Logs navigation

You can navigate to the Log Explorer on the Datadog platform directly from your C# source files. Look for the clickable icon preceding message strings from log statements within your source code:

A source file showing log lines with clickable icons.

Clicking the icon opens the Log Explorer with a query that matches the logger name, log level, and log message as closely as possible.

Open code in Visual Studio from Datadog

Navigate from Datadog to your source code with one click.

A stack trace on the Datadog platform showing the View in Visual Studio button.

Static Analysis

The Datadog extension runs Static Analysis rules on the source files you have open in your Solution. The goal is to detect and fix problems such as maintainability issues, bugs, or security vulnerabilities in your code before you commit your changes.

Static Analysis supports scanning for many programming languages. For a complete list, see Static Analysis Rules. For file types belonging to supported languages, rule violations are highlighted in the source code editor, and suggested fixes can be applied directly:

A static analysis rule violation.

When you start editing a source file supported by Static Analysis, the extension checks for static-analysis.datadog.yml at your source repository’s root. The static analyzer runs automatically in the background.

The Static Analysis feature does not require a Datadog account, as source files are analyzed locally.

Getting started


Setup and installation

  1. Download and install the extension from the official Visual Studio Marketplace.
  2. In Visual Studio, go to Tools > Options > Datadog.
  3. Sign in with your Datadog account, or sign up for a free trial.
  4. Open a solution in Visual Studio.
  5. Go to Extensions > Datadog > Linked Services.
  6. Add services, and save your solution.
  7. Go to Extensions > Datadog > Code Insights.


Report a bug, request a new feature, or ask for help on the Discussion Forum and Issue Tracker on GitHub. You can also email

Further Reading