Skip to main content

Overview

IBM Instana is a powerful platform for monitoring the performance of your applications. This guide focuses on integrating Langtrace AI with IBM Instana for distributed tracing of your LLM powered applications.

Prerequisites

Before you begin, ensure you have the following:

Setup

In your OpenTelemetry collector setup, make sure you have the collector endpoint environment variable set like this example:

Initialize the Langtrace SDK

Initialize the Langtrace SDK in your application with your OTLP collector endpoint:
Note: The OTLP collector is setup using a config file in this example. The config file is shown below:

Run the Application

With the environment variables set, run your application with OpenTelemetry instrumentation. Use the following command:
Note: Make sure your collector is running and configured correctly. To run the collector locally, you can use the following command:

Verifying the Setup

Once the application is running, you should see traces in your Instana APM dashboard as shown below: IBM Instana Tracing 1 IBM Instana Tracing 2 IBM Instana Tracing 3 Missing Libraries: Verify that all necessary libraries are installed. If you encounter any errors, reinstall the libraries using the provided commands. Additional Resources