September 19, 2022 By IBM Instana Team 3 min read

The IBM® Instana® platform is a great APM tool with all important capabilities to provide end-to-end observability and AIOps to the companies. The Instana platform can instrument the applications automatically using the one-agent concept where, with a single agent, it can instrument all kinds of applications.

So, why do I need to instrument an application using OpenTelemetry (Otel)? We have some good reasons why, and this example is just because the application is hosted on IBM® Cloud Foundry where we can’t install any agent. In this kind of situation, we have two options to instrument the application.

The first one is to use Instana manual instrumentation and the second one is to use Otel instrumentation and send the tracing to the Instana backend. And, in this example, we’ll use Otel to do it.

Now we can instrument the application using the Otel instructions located on the Otel documentation for Python: Python OpenTelemetry Instrumentation.

Let me show in more detail how the application was instrumented.

Otel packages to be installed:

OpenTelemetry exporters to be configured:

OpenTelemetry instrumentation variables:

Imports required:

Initializing trace provider:

Creating span for tracing:

Adding custom attributes to span:

Instana backend to receive the tracing data:

Now, with those configurations, the Instana backend will start to receive the tracing data.

Let me share some Instana screenshots to demonstrate how to get the data.

Span generated by Otel:

This span is created by Otel. You can see here a custom attribute defined on the code: amsSite.

Error call details collected by Otel:

Application error detected by the Instana platform.

Tracing details:

Application view:

Custom dashboards created using Otel data:

Chart analysis for calls overview calls, erroneous call rate, latency:

You can see here the number of calls, the error rate and latency collected by Otel.

List of traces captured:

This screenshot represents the traces generated by the application through Otel instrumentation.

Individual trace details:

It’s an individual trace created by Otel instrumentation. OpenTelemetry HTTP and custom tags:

Here you can see the custom attributes defined on the instrumentation.

Get started

Ready to try out IBM Instana and see what it can do for you?

Sign up for a free, two-week trial
Was this article helpful?
YesNo

More from IBM Instana

IBM Instana wins the Devies 2023 Award in the Developer Category in Observability and Monitoring

2 min read - We’re excited to announce that IBM Instana Observability has won the Devies 2023 Award in the Developer Category in Observability and Monitoring. Just a few weeks into the new year, congratulations are in order to the Instana team. The 11th Annual Devies are the definitive annual awards for the software industry, recognizing outstanding design, engineering and innovation in developer technology across 31 categories. This recognition is a testament to IBM's hard work and dedication to delivering exceptional products that meet…

How to use Smart Alerts on Custom Events to monitor business metrics in real-time

3 min read - Are you a business owner trying to monitor and alert on your business metrics? Are you trying to reduce the time it takes to detect revenue-impacting issues? IBM Instana™ website monitoring, also known as end-user or real-user monitoring, tracks metrics and events on your websites. Real-time information about HTTP calls, errors and other events are collected as they’re happening within your browsers. IBM Instana Custom Events identify activities that are happening more or less frequently than they should be. This…

Now available: The IBM Instana platform on-premises with the Red Hat OpenShift Platform

< 1 min read - Whether its Kubernetes or Red Hat® OpenShift®, the IBM® Instana® platform goes wherever you go. We’re excited to announce support for hosting Instana on-premises on Red Hat OpenShift. The Instana on-premises observability backend empowers system administrators with the complete suite of features available in the IBM Instana Observability platform while also maintaining full data custody and avoiding potentially expensive data transmission. The Instana platform already supports a seamless installation process in Kubernetes using helm. We can now offer a similar…

IBM Newsletters

Get our newsletters and topic updates that deliver the latest thought leadership and insights on emerging trends.
Subscribe now More newsletters