# Source: https://docs.datadoghq.com/developers/ide_plugins/idea.md

---
title: Datadog Plugin for JetBrains IDEs
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Developers > Datadog IDE Plugins > Datadog Plugin for JetBrains IDEs
---

# Datadog Plugin for JetBrains IDEs

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com



{% alert level="danger" %}
The Datadog extension for JetBrains IDEs is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site) ().
{% /alert %}


{% /callout %}

## Overview{% #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](https://docs.datadoghq.com/tracing/error_tracking/), [Logs](https://docs.datadoghq.com/developers/ide_plugins/idea/logs/), [Live Debugger](https://docs.datadoghq.com/tracing/live_debugger/) and [Code Security](https://docs.datadoghq.com/developers/ide_plugins/idea/code_security/) to monitor their services. It is available for IntelliJ IDEA, GoLand, PyCharm, WebStorm, and PhpStorm.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/overview1.8ffd97b824a14e4727b73ffd6092202f.png?auto=format"
   alt="The Datadog tool window open in IDEA" /%}

## Requirements{% #requirements %}

- **A Datadog account**: The plugin requires a Datadog account. If you're new to Datadog, go to the [Datadog website](https://www.datadoghq.com/) to learn more about Datadog's observability tools and sign up for a free trial.

## Setup{% #setup %}

### Install the Datadog plugin{% #install-the-datadog-plugin %}

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

Alternatively, you can install the plugin from the [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/19495-datadog).



### Log in to Datadog{% #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.
1. Click **Log inâ¦**.
1. 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{% #link-a-service %}

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.
1. A settings dialog opens, click the plus icon (**+**).
1. 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 (**-**).

{% alert level="info" %}
The names of linked services persist with the project when you close it.
{% /alert %}

## Core features{% #core-features %}

### Error Tracking{% #error-tracking %}

The [**Error Tracking**](https://docs.datadoghq.com/tracing/error_tracking/) integration helps you find and fix runtime errors from Error Tracking.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/error-tracking-in-editor.a542450c8c7a2140cc1400e19673e716.png?auto=format"
   alt="Error tracking in the source editor" /%}

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

### Logs{% #logs %}

The [**Logs**](https://docs.datadoghq.com/developers/ide_plugins/idea/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.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/logs/logs.f46dc25d7e196d5ef319989ac222083b.png?auto=format"
   alt="Log events from Datadog" /%}

Find out more in the [Logs](https://docs.datadoghq.com/developers/ide_plugins/idea/logs/) sub-section.

### Live Debugger{% #live-debugger %}

The [**Live Debugger**](https://docs.datadoghq.com/developers/ide_plugins/idea/live_debugger/) enables you to add logpointsâauto-expiring, non-breaking breakpointsâto your runtime code to collect information for debugging.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/live_debugger/tool-window-tab.ebd67afaa2e69a7edea92ea2e87cef97.png?auto=format"
   alt="The Live Debugger tab" /%}

Find out more in the [Live Debugger](https://docs.datadoghq.com/developers/ide_plugins/idea/live_debugger/) sub-section.

### Code Security{% #code-security %}

The [**Code Security**](https://docs.datadoghq.com/developers/ide_plugins/idea/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.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/code_security/library-vulnerability.7ce59d8da2a90ff10806a039577aef54.png?auto=format"
   alt="A library vulnerability highlighted in the source editor." /%}

Find out more in the [Code Security](https://docs.datadoghq.com/developers/ide_plugins/idea/code_security/) sub-section.

## Other features{% #other-features %}

### View in IDE{% #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](https://docs.datadoghq.com/tracing/error_tracking/)):

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/view-in-idea.3305c7d3624ff6083e7c92499a2999fd.png?auto=format"
   alt="A stack trace on the Datadog platform showing the View in IntelliJ button." /%}

{% alert level="info" %}
To make the most of this feature, ensure that Source Code Integration is configured for your service.
{% /alert %}

### Code Origin for Spans{% #code-origin-for-spans %}

The [**Code Origin for Spans**](https://docs.datadoghq.com/tracing/code_origin?tab=java) integration shows you metrics for entry spans at the corresponding location in your source code.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/apm-span.55a85ad51470bfefd64513c2c7f7c1c3.png?auto=format"
   alt="APM spans in the source editor" /%}

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

### Flaky Tests{% #flaky-tests %}

The [**Flaky Tests**](https://docs.datadoghq.com/tests/flaky_tests) integration shows you flaky tests detected by [Test Optimization](https://docs.datadoghq.com/tests/).

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/flaky-test-in-editor.18d073083673e7f9945d4494da93920b.png?auto=format"
   alt="APM spans in the source editor" /%}

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

### CI Test Runs{% #ci-test-runs %}

You can view recent test runs in the [CI Visibility Explorer](https://docs.datadoghq.com/continuous_integration/explorer/?tab=testruns) by navigating directly from your source files. Look for the **CI Test Run** inlays above test method declarations in your source code:

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/ci-test-in-editor.6e0b1481a9b9829d955edb89f8f3e8de.png?auto=format"
   alt="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{% #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](https://www.datadoghq.com/legal/privacy/) and [Datadog's EULA](https://www.datadoghq.com/legal/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{% #feedback %}

You can give feedback in the [discussion forum](https://github.com/DataDog/datadog-for-intellij/discussions), or send an e-mail to [team-ide-integration@datadoghq.com](mailto:team-ide-integration@datadoghq.com).

## Further reading{% #further-reading %}

- [Learn more about Error Tracking](https://docs.datadoghq.com/tracing/error_tracking/)
- [Learn more about Logs](https://docs.datadoghq.com/logs/explorer/)
- [Learn more about Live Debugger](https://docs.datadoghq.com/tracing/live_debugger/)
- [Learn more about Code Security](https://docs.datadoghq.com/security/code_security/)
- [Learn more about Source Code Integration](https://docs.datadoghq.com/integrations/guide/source-code-integration/)
MarketplaceWidget.setupMarketplaceWidget("install",19495,"#datadog_plugin_install_button")