Icon

Comments have been closed on this page. Please use AppMon & UEM Plugins forum for questions about this plugin.

To simplify problem resolution, Dynatrace integrates with IntelliJ IDEA through the Dynatrace IntelliJ IDEA Integration Plugin. 
The Dynatrace IntelliJ IDEA Integration Plugin enables you to:

  • launch applications with an injected Dynatrace Agent directly from IntelliJ IDEA
  • retrieve & display the key architectural metrics (such as number of SQL queries, external API calls, exceptions and log messages) from your tests
  • perform look-ups of sources files and methods from applications under diagnosis in Dynatrace Application Monitoring

Plugin Details

Compatible with

version 2.x: Dynatrace AppMon 6.3 and up / IntelliJ 2016.1+
version 1.x: dynaTrace >= 5.5

Author

version 2.x: Dynatrace R&D (Contributors: Maciej Mionskowski / https://maciekmm.net/)
version 1.x: Christian Grimm (christian.grimm@dynatrace.com)

License

Dynatrace BSD

Support Level

Supported

Download

https://plugins.jetbrains.com/plugin/8536?pr=idea

version 2.x: https://github.com/Dynatrace/Dynatrace-IntelliJ-IDEA-Integration-Plugin/releases/
version 1.x: dynaTrace IntelliJ IDEA Integration Plugin v1

Source Codehttps://github.com/Dynatrace/Dynatrace-IntelliJ-IDEA-Integration-Plugin
Changelog
  • 2016-08-12 2.0.3 Added support for running all Java run configurations with agents injected
  • 2016-08-10 2.0.2 Support IntelliJ IDEA 15
     
  • 2016-08-08 2.0.1 released
  • 2016-08-03 Private Beta for 2.x version
  • 2012-01-10 Initial Release
  • 2012-03-15 Added support for older IDEA 10.0 version
Documentation

version 2.x:

version 1.x: dynaTrace IntelliJ IDEA Integration Plugin v1

Report an Issuehttps://github.com/Dynatrace/Dynatrace-IntelliJ-IDEA-Integration-Plugin/issues

Install Dynatrace IntelliJ IDEA Integration Plugin

 Follow the instructions available on the Plugin Github page.

Usage

For detailed user guide please consult the Plugin Github page and the IntelliJ IDEA Plugin FAQ / Troubleshooting Guide

Features

Launcher

With the Dynatrace Launcher, Auto instrument your Java applications from IntelliJ IDEA:

Test Result

When lauching JUnit tests, the plug-in will automatically register a test run to the Dynatrace Server. The results and key architectural metrics are automatically retrieved and displayed in the Test Result tab. 

The test results are also visible in the Dynatrace Client for further drill-down to the PurePath level.


More information about the Test Automation feature: Test Automation Explained

Source Code Look-up

 When Dynatrace identifies a source code fragment as the root cause of a particular problem, you can go directly from the Dynatrace Client to the exact location within your IntelliJ IDEA development environment where you need to make changes.

 


 

  1. Anonymous (login to see details)

    Hi,

     

    will this plugin be updated for working with 5.6.0 and IntelliJ 13+? Our developers would love it (smile), because most of them using IntellJ.

     

    Regards,

    Jan

     

     

    1. Anonymous (login to see details)

      Hi Jan. Have you tested this with 5.6? Our interfaces havent changed - so - I would just give it a shot and see if it works. Chances are that it just works. If you can confirm then I can update the version information on that page. If not - I will contact the author

      1. Anonymous (login to see details)

        Hi,

         

        we tested it and got this error:

        IncompatibleClassChangeError: Found interface com.intellij.execution.configurations.RunnerSettings, but class was expected: Found interface com.intellij.execution.configurations.RunnerSettings, but class was expected (a minute ago)

        I can't say, if it would work with dt 5.6, because it isn't working with IntelliJ 13 (wink)

         

        Regards,

        Jan

  2. Anonymous (login to see details)

    Do we know if this will be updated for 6.0 or 6.1 and IntelliJ 14? I have a prospect asking since they use version 14.

     

    Regards,

    Jeff

  3. Anonymous (login to see details)

    Hi Jeff. Just talked with the author. He hasnt tested it with v14. Chances are that it just works - but - it is also possible that IntelliJ changed their plugin interfaces. So - I would give it a try if I would be you. The good news is that the interfaces on the dynatrace side havent changed. So - the plugin will work with the latest versions of dT. Its really just a matter on whether IntelliJ is still compatible.

    If you go forward and give this a try let me know how it works

  4. Anonymous (login to see details)

    Hello,

    we tried to connect Dynatrace 6.1 with IntelliJ 14 and it didn't work. The plugin was installed successfully, but we couldn't connect from Dynatrace with "Show in IDE".

    The project in IntelliJ had the file open, but Dynatrace did not jump in. We tested it on Windows 7 and Mac OS 10.

     

    Regards

    Andreas

  5. Anonymous (login to see details)

    IntelliJ Exception mit Dynatrace 6.1 und IntelliJ 14:

    com.intellij.psi.JavaPsiFacade.findClass(Ljava/lang/String;)Lcom/intellij/psi/PsiClass;
    java.lang.NoSuchMethodError: com.intellij.psi.JavaPsiFacade.findClass(Ljava/lang/String;)Lcom/intellij/psi/PsiClass;
        at com.dynatrace.diagnostics.ideaplugin.codelink.SourceCodeNavigator.findFile(SourceCodeNavigator.java:31)
        at com.dynatrace.diagnostics.ideaplugin.codelink.SourceCodeNavigator.openSourceCode(SourceCodeNavigator.java:16)
        at com.dynatrace.diagnostics.codelink.core.client.CodeLinkWebserviceClient$1.run(CodeLinkWebserviceClient.java:70)
        at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:318)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
        at java.awt.EventQueue.access$400(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:697)
        at java.awt.EventQueue$3.run(EventQueue.java:691)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
        at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
        at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

    1. Anonymous (login to see details)

      Hi Johannes,

      Thank you for your feedback. Unfortunately IntelliJ 14 is actually untested. There are currently no plans from my side for updating this plugin.

      Thank you for understanding
      Christian

       

      1. Anonymous (login to see details)

        Hi Christian,

        Is 11 the last version we plan on supporting? I have a customer running 14 that would like to use this plug in.

        Thanks,

        Kevin

  6. Anonymous (login to see details)

    Shame it would have been useful to help with Developer adoption if it was directly integrated with their IDE/Build environment.

  7. Anonymous (login to see details)

    Is it possible to get the source code for the plugin so that someone else could possibly pick it up? We are running a variant of IntelliJ based on 1.4 and integrating the two would be a great benefit to our project.

  8. Anonymous (login to see details)

    My client also uses IntelliJ 14, and is very interested in using this integration.  Are there plans to either share the code for manual fixes or are there plans for future revisions to this plugin?

  9. Anonymous (login to see details)

    Also in my company, the developer a changing from eclipse to intellij 14 and for the CI it would be very interesting to have a plugin.

  10. Anonymous (login to see details)

    Hi, Christian Grimm or Ingo Hackl can the code for this plugin be put up on the Github repo https://github.com/Dynatrace/Dynatrace-IntelliJ-IDEA-Integration-Plugin since it hasn't been updated since 2012?  It looks like there's enough community around this interested to update and maintain such a plugin.

    Thanks,

    Rick B

  11. Anonymous (login to see details)

    I have a big customer in Belgium that is using IntelliJ 14 and is in need for this plugin. Not everybody uses Eclipse (wink)

    1. Anonymous (login to see details)

      Again, I'd like to ask for the source so we can maintain it in the community

      Rick B

  12. Anonymous (login to see details)

    Hi everybody,

    Christian Grimm was kind enough to send us the source code of the old version and we plan to update it during the Summer before releasing it (including source code).

    Please watch Kristof Renders Product Idea on the forum to stay updated on the progress and beta testing: https://answers.dynatrace.com/idea/153937/rfe-official-plugin-for-latest-intellij-releases.html

    Sonja

    1. Anonymous (login to see details)

      Great news!  Thank you Sonja

  13. Anonymous (login to see details)

    Hi,

    we have a BETA release ready to be tested for IntelliJ. Just drop me an e-mail at sonja.chevre@dynatrace.com if you are interested to test it before we publish it officially.

    Sonja

  14. Anonymous (login to see details)

    Hi,

    good to see that IntelliJ is also supported now. Any chance to run this on IntelliJ 15 or any plans on backporting?

    Thanks,

    Markus

    1. Anonymous (login to see details)

      Hi Markus,

      we have added support for IDEA 15.

      Updated version should be available on JetBrains plugin repository.

      Manual installation is possible using the release from our github: https://github.com/Dynatrace/Dynatrace-IntelliJ-IDEA-Integration-Plugin/releases/tag/v2.0.2

      Regards,

      Maciej

  15. Anonymous (login to see details)

    Hi,

    FYI, I got the following Exception once, it seems there are cases where a null-check is missing:

     

    null
    java.lang.NullPointerException
        at com.dynatrace.integration.idea.execution.DynatraceTestStatusListener.testSuiteFinished(DynatraceTestStatusListener.java:65)
        at com.intellij.execution.testframework.TestStatusListener.notifySuiteFinished(TestStatusListener.java:42)
        at com.intellij.execution.testframework.TestsUIUtil.notifyByBalloon(TestsUIUtil.java:131)
        at com.intellij.execution.testframework.sm.runner.ui.SMTestRunnerResultsForm.onTestingFinished(SMTestRunnerResultsForm.java:299)
        at com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor.fireOnTestingFinished(GeneralTestEventsProcessor.java:153)
        at com.intellij.execution.testframework.sm.runner.GeneralToSMTRunnerEventsConvertor.lambda$onFinishTesting$2(GeneralToSMTRunnerEventsConvertor.java:98)
        at com.intellij.execution.testframework.sm.runner.GeneralTestEventsProcessor.lambda$new$0(GeneralTestEventsProcessor.java:58)
    ...

     

    Version 2.0.3 in IntelliJ 2016.2.3

     

    Dominik.

     

    1. Anonymous (login to see details)

      Thanks for the report Dominik!

      I assume that occurred after executing tests. Did you close the test panel before that happened? It looks like we didn't get the object we read list of tests from.

      Regards,

      Wiktor

      1. Anonymous (login to see details)

        Sorry, I am not sure, I just saw the error message pop up in IntelliJ, but I likely did not actually close the Test-panel, I usually only hide it.

        There might have been a restart of IntelliJ around that time, but I am not sure about this either..

         

        Thanks... Dominik.