Datadog Plugin for JetBrains IDEs

The Datadog extension for JetBrains IDEs is not supported for your selected Datadog site ().

Overview

The Datadog plugin for JetBrains IDEs helps improve software performance by providing code insights in the IDE based on real-time observability data. The plugin is for developers that use Datadog products including Error Tracking, Logs, Live Debugger and Code Security to monitor their services. It is available for IntelliJ IDEA, GoLand, PyCharm, WebStorm, and PhpStorm.

The Datadog tool window open in IDEA

Requirements

  • A Datadog account: The plugin requires a Datadog account. If you’re new to Datadog, go to the Datadog website to learn more about Datadog’s observability tools and sign up for a free trial.

Setup

Install the Datadog plugin

  1. In the IDE Settings select Plugins and search for Datadog in the Marketplace tab.
  2. Click Install to download and install the plugin in your IDE.
  3. Click Restart IDE.

Alternatively, you can install the plugin from the JetBrains Marketplace.

Log in to Datadog

After installing the Datadog plugin and restarting the IDE, log in to Datadog:

  1. With a file or project open in the IDE, click the Datadog tool window.
  2. Click Log in….
  3. In the browser window that opens, select your site and organization, then authorize access to the platform.

Note: For most users, one login is all that is required. If you’re using a multi-org setup, check to ensure that the correct account is active. To find out which login your IDE is using, click Settings -> Tools -> Datadog, and check which account is active.

To provide relevant data from the Datadog platform, add related services to your project:

  1. With your project open in the IDE, open the Datadog tool window and select Manage Linked Services… from the Options menu.
  2. A settings dialog opens, click the plus icon (+).
  3. Search for and select the services that you want to add to the current project.

To remove a service, select it in the Services table and click the minus icon (-).

The names of linked services persist with the project when you close it.

Core features

Error Tracking

The Error Tracking integration helps you find and fix runtime errors from Error Tracking.

Error tracking in the source editor

Click the inlay to open the Datadog tool-window and inspect details of the runtime error.

Logs

The Logs integration detects log lines in your source code, displays live event counts directly in the source editor, and provides links to the Datadog Log Explorer to view the logs generated by each log line.

Log events from Datadog

Find out more in the Logs sub-section.

Live Debugger

The Live Debugger enables you to add logpoints—auto-expiring, non-breaking breakpoints—to your runtime code to collect information for debugging.

The Live Debugger tab

Find out more in the Live Debugger sub-section.

Code Security

The Code Security integration promotes better security by flagging library vulnerabilities and runtime code vulnerabilities. The local code analyzer checks your code changes as you edit to detect quality and security issues prior to commit.

A library vulnerability highlighted in the source editor.

Find out more in the Code Security sub-section.

Other features

View in IDE

The View in IDE feature provides a link from the Datadog platform directly to the source files in your IDE. Look for the button next to frames in stack traces displayed on the platform (for example, in Error Tracking):

A stack trace on the Datadog platform showing the View in IntelliJ button.
To make the most of this feature, ensure that Source Code Integration is configured for your service.

Code Origin for Spans

The Code Origin for Spans integration shows you metrics for entry spans at the corresponding location in your source code.

APM spans in the source editor

Click the inlay to open the Datadog tool window and inspect the span details.

Flaky Tests

The Flaky Tests integration shows you flaky tests detected by Test Optimization.

APM spans in the source editor

Click the inlay to open the Datadog tool window and inspect the test details.

CI Test Runs

You can view recent test runs in the CI Visibility Explorer by navigating directly from your source files. Look for the CI Test Run inlays above test method declarations in your source code:

A source file showing a CI Test Run inlay.

Clicking the link opens the Test Runs tab showing the recent history for one test case.

Data and telemetry

Datadog collects information about your usage of this IDE, including how you interact with it, whether errors occurred while using it, and what caused those errors, in accordance with the Datadog Privacy Policy and Datadog’s EULA.

If you don’t wish to send this data to Datadog, you can disable the collection at any time in the settings: Settings > Tools > Datadog > Data Sharing and disable the Send usage statistics option.

Feedback

You can give feedback in the discussion forum, or send an e-mail to team-ide-integration@datadoghq.com.

Further reading