Mistral AI Observability & Monitoring with OpenTelemetry SigNoz has released a guide for setting up observability and monitoring for Mistral AI applications using OpenTelemetry, enabling developers to export traces, logs, and metrics to the SigNoz platform. The integration allows teams to analyze correlated telemetry data in unified dashboards and configure alerts to improve AI application reliability and performance. Overview This guide walks you through setting up observability and monitoring for Mistral using OpenTelemetry https://opentelemetry.io/ and exporting traces, logs, and metrics to SigNoz. With this integration, you can observe and track various metrics for your Mistral applications and LLM usage. Monitoring Mistral in your AI applications with telemetry ensures full observability across your AI and LLM workflows. By leveraging SigNoz, you can analyze correlated traces, logs, and metrics in unified dashboards, configure alerts, and gain actionable insights to continuously improve reliability, responsiveness, and user experience. Prerequisites - A SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key or Self Hosted SigNoz instance https://signoz.io/docs/install/self-host/ - For Python: pip installed for managing Python packages - A Mistral Account and API key. You can get the API key from Mistral platform https://admin.mistral.ai/organization/api-keys Monitoring Mistral AI For more information on getting started with Mistral in your Python environment, refer to the Mistral quickstart guide https://docs.mistral.ai/getting-started/quickstart . No code auto-instrumentation is recommended for quick setup with minimal code changes. It's ideal when you want to get observability up and running without modifying your application code and are leveraging standard instrumentor libraries. Step 1: Install the necessary packages in your Python environment. pip install \ opentelemetry-distro \ opentelemetry-exporter-otlp \ httpx \ opentelemetry-instrumentation-httpx \ opentelemetry-instrumentation-system-metrics \ mistralai \ openinference-instrumentation-mistralai Step 2: Add Automatic Instrumentation opentelemetry-bootstrap --action=install Step 3: Configure logging level To ensure logs are properly captured and exported, configure the root logger to emit logs at the DEBUG level or higher: python import logging logging.getLogger .setLevel logging.DEBUG logging.getLogger "httpx" .setLevel logging.DEBUG This sets the minimum log level for the root logger to DEBUG, which ensures that logger.debug calls and higher severity logs INFO, WARNING, ERROR, CRITICAL are captured by the OpenTelemetry logging auto-instrumentation and sent to SigNoz. Step 4: Create an example Mistral application python import os from mistralai.client import Mistral import logging logging.getLogger .setLevel logging.DEBUG logging.getLogger "httpx" .setLevel logging.DEBUG client = Mistral api key=os.environ "MISTRAL API KEY" chat response = client.chat.complete model='mistral-small-2506', messages = { "role": "user", "content": 'What is SigNoz?', }, print chat response.choices 0 .message.content Before running this code, ensure that you have set the environment variable MISTRAL API KEY with your generated Mistral API key. Step 5: Run your application with auto-instrumentation Run your application with the following environment variables set. This configures OpenTelemetry to export traces, logs, and metrics to SigNoz Cloud and enables automatic log correlation: OTEL RESOURCE ATTRIBUTES="service.name=