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.
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
- 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 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.
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
Error Tracking
The Error Tracking integration helps you find and fix runtime errors from Error Tracking.
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.
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.
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.
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):
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.
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.
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:
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
Additional helpful documentation, links, and articles: