Post

Instana PHP Plugin for JetBrains Products

January 17, 2020

Writing support code for creating custom spans can be boring and tedious. For that reason, Instana commonly automates traces and span creation as much as possible. Preventing developers from sprinkling monitoring code over all their codebase.

From time to time, however, you want special, application-specific elements to show up in traces, or add tracing for a non-supported frameworks. In this case, adding custom spans is manual work.

Life Made Easier

To minimize the work for PHP developers, Instana published an extension plugin for the famous JetBrains IDEA based IDEs like IntelliJ or PhpStorm.

The plugin adds code intentions to automatically wrap a piece of code or statement into a span being recognized by the Instana backend.

Instana's JetBrains Plugin provides Intentions to quickly wrap code into a spanFigure 1: Instana’s JetBrains Plugin provides Intentions to quickly wrap code into a span

Just mark the code you want to wrap and select the intent. The Instana for PHP plugin automatically wraps it.

Figure 2: Wrapped operation with Instana’s JetBrains Plugin

Beautiful, fast and saving plenty of keystrokes. Just as it should be 🙂

How to find it?

The plugin can be found in JetBrains Plugin repository or, since the source code is open, on Github.

To install the plugin, open up your IDE, go to Preferences…, and under Plugins search for Instana. Hit the Install button and after the restart you’re good to go.

Figure 3: Install Instana’s JetBrains IDE Plugin right from the Plugin Marketplace

Open Source

Instana open sourced the plugin and is looking for additional features, code intentions, ideas and pull requests. Feel free to add issues in the Github Issue Tracker and / or provide the team directly with your feature request in the form of code.

Give it a Try

If you don’t have an Instana account yet, jump right into our 14 days trial and get jump-started in the blink of an eye.

Play with Instana’s APM Observability Sandbox

Announcement, Product
With this, monitoring and tracing of PHP services is as important as it has been in the past two decades. Instana is always eager to improve the support of PHP and is...
|
Announcement, Developer, Featured, Product
As well as adding new sensors, Instana is constantly improving and enhancing the existing ones. Adding support for new frameworks and versions along with adding new functionality, we endeavour to keep all...
|

Start your FREE TRIAL today!

As the leading provider of Automatic Application Performance Monitoring (APM) solutions for microservices, Instana has developed the automatic monitoring and AI-based analysis DevOps needs to manage the performance of modern applications. Instana is the only APM solution that automatically discovers, maps and visualizes microservice applications without continuous additional engineering. Customers using Instana achieve operational excellence and deliver better software faster. Visit https://www.instana.com to learn more.