Datadog Plugin for JetBrains IDEs
This product 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 who use Datadog products, such as Code Security, to monitor their services. It is available for IntelliJ IDEA, GoLand, PyCharm, RubyMine, WebStorm, and PhpStorm.
Requirements
- A Datadog account: The plugin requires a Datadog account. If you’re new to Datadog, go to the Datadog website to learn about Datadog’s observability tools. You can sign up for a free trial there.
Setup
Install the Datadog plugin
- In the IDE Settings select Plugins and search for
Datadog in the Marketplace tab. - Click Install to download and install the plugin in your IDE.
- 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:
- With a file or project open in the IDE, click the Datadog tool window.
- Click Log in….
- 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 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.
Link a service
To provide relevant data from the Datadog platform, add related services to your project:
- With your project open in the IDE, open the Datadog tool window and select Manage Linked Services… from the Options menu.
- A settings dialog opens, click the plus icon (+).
- 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
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.
Find out more in the Code Security sub-section.
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):
To make the most of this feature, configure Source Code Integration for your service.
Other features
Code origin for spans
This feature is in limited support.
The Code Origin for Spans integration shows you metrics for entry spans at the corresponding location in your source code.
Click the inlay to open the Datadog tool window and inspect the span details.
Flaky tests
This feature is in limited support.
The Flaky Tests integration shows you flaky tests detected by Test Optimization.
Click the inlay to open the Datadog tool window and inspect the test details.
CI test runs
This feature is in limited support.
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:
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. This includes how you interact with it, whether errors occurred, and what caused those errors. Collection follows the Datadog Privacy Policy and Datadog’s EULA.
If you don’t want to send this data to Datadog, turn off collection in the settings. Go to Settings > Tools > Datadog > Data Sharing and disable Send usage statistics.
Feedback
You can give feedback in the discussion forum, or send an email to team-ide-integration@datadoghq.com.
Further reading
Additional helpful documentation, links, and articles: