OpenTelemetry Instrumentation example using IBM Instana as the backend

September 19, 2022

Otel packages you can install

Otel Python packages that can be installed

OpenTelemetry exporters to be configured:

OpenTelemetry exporters to be configured

OpenTelemetry Instrumentation variables:

OpenTelemetry Instrumentation variables

Imports required:

Otel imports required

Initializing trace provider:

Initializing trace provider

Creating span for tracing:

Otel code for creating span for tracing

Adding custom attributes to span:

Adding custom attributes to span for otel

Instana backend to receive the tracing data:

Instana backend to receive the tracing data

Span generated by Otel:

This is a span created by Otel, you can see here a custom attribute defined on the code: amsSite
This is a span 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 Instana
Application Error Detected by Instana

Tracing details:

You can filter the data and select the timeframe

You can use the Otel default attributes as a filter

Application view:

The main application view on Instana

Custom dashboards created using Otel data:

These are some custom widgets created on Instana with 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
You can see here the number of calls, the error rate, and Latency collected by Otel

List of traces captured:

This represents the traces generated by the application via Otel Instrumentation
This represents the traces generated by the application via Otel Instrumentation

Individual trace details:

It is an individual trace created by Otel Instrumentation
It is an individual trace created by Otel Instrumentation

Opentelemetry HTTP and custom tags:

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

Play with Instana’s APM Observability Sandbox

Start your FREE TRIAL today!

Instana, an IBM company, provides an Enterprise Observability Platform with automated application monitoring capabilities to businesses operating complex, modern, cloud-native applications no matter where they reside – on-premises or in public and private clouds, including mobile devices or IBM Z.

Control hybrid modern applications with Instana’s AI-powered discovery of deep contextual dependencies inside hybrid applications. Instana also gives visibility into development pipelines to help enable closed-loop DevOps automation.

This provides actionable feedback needed for clients as they to optimize application performance, enable innovation and mitigate risk, helping Dev+Ops add value and efficiency to software delivery pipelines while meeting their service and business level objectives.

For further information, please visit instana.com.