opentelemetry-instrumentation-mistralai
OpenTelemetry Mistral AI instrumentation
Decision gist · record as of 2026-08-14
Yes, if you are already using OpenTelemetry and the Mistral AI library. Installation is straightforward, maintenance is active, and there are no known vulnerabilities. The permissive Apache-2.0 license poses no barrier. The main consideration is whether your observability stack is already OpenTelemetry-based; if not, you would need to set that up first. Privacy-conscious teams should enable `TRACELOOP_TRACE_CONTENT=false` to avoid logging sensitive prompts.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Mistral AI library must be installed separately for instrumentation to attach to actual API calls.
- Low friction: pure Python wheel with four stable OpenTelemetry dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without significant restrictions.
last release 2026-08-10 (4 days) · last repo commit 2026-08-10 · 7,377 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,833,585 downloads/mo, #1,838 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-instrumentation-mistralai
from opentelemetry.instrumentation.mistralai import MistralAiInstrumentor
MistralAiInstrumentor().instrument()- Whether instrumentation works with all Mistral AI endpoints or only a subset
- Performance overhead of tracing on typical Mistral API call latency
- Compatibility with specific versions of the Mistral AI library
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that automatically intercepts and traces calls made through the official Mistral AI Python library. Once initialized with a single call to `MistralAiInstrumentor().instrument()`, it captures request and response data as span attributes, giving you visibility into what your LLM application is sending to and receiving from Mistral's endpoints.
By default, it logs prompts, completions, and embeddings to trace spans—useful for debugging and understanding model behavior. However, you can disable this content logging by setting the `TRACELOOP_TRACE_CONTENT` environment variable to `false` if you need to protect sensitive user data or reduce trace size. The instrumentation integrates with your existing OpenTelemetry collector setup, so traces flow into whatever backend you're already using.
Use it for
- Debug Mistral API calls in development by inspecting prompts and responses in your trace backend
- Monitor production LLM applications to detect latency, errors, or unexpected model behavior
- Correlate Mistral API calls with other application traces for end-to-end request tracing
- Audit what data is being sent to Mistral for compliance or privacy reviews
- Evaluate model output quality by reviewing completions stored in trace spans
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already using OpenTelemetry and the Mistral AI library.
Installation is straightforward, maintenance is active, and there are no known vulnerabilities. The permissive Apache-2.0 license poses no barrier. The main consideration is whether your observability stack is already OpenTelemetry-based; if not, you would need to set that up first. Privacy-conscious teams should enable `TRACELOOP_TRACE_CONTENT=false` to avoid logging sensitive prompts.
Install
opentelemetry-instrumentation-mistralai on PyPI
Before you install
Low friction: pure Python wheel with four stable OpenTelemetry dependencies. Actively maintained as of 2026-08-10 with recent release history.
Requires Python 3.10 or later. Mistral AI library must be installed separately for instrumentation to attach to actual API calls.
License in practice
Apache-2.0 permissive license allows use in most projects without significant restrictions.
Quickstart
pip install opentelemetry-instrumentation-mistralai
from opentelemetry.instrumentation.mistralai import MistralAiInstrumentor
MistralAiInstrumentor().instrument()
Verify before relying
- Whether instrumentation works with all Mistral AI endpoints or only a subset
- Performance overhead of tracing on typical Mistral API call latency
- Compatibility with specific versions of the Mistral AI library
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release <4,>=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesopentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventions-aiopentelemetry-semantic-conventions |
| Maintenance | Actively maintained 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,833,585 / month, #1,838 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: opentelemetry_instrumentation_mistralai-0.62.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “mistral ai tracing”
- opentelemetry-instrumentation-mistralaiAutomatically captures and traces calls to the Mistral AI API using…
- langchain-mistralaiConnects Mistral AI language models to LangChain, enabling you to use…
- mistralaiPython client SDK for the Mistral AI API, providing access to chat…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-instrumentation-openai · opentelemetry-instrumentation-sagemaker · opentelemetry-instrumentation-vertexai · mistralai-workflows · mistralai · literalai · opentelemetry-instrumentation-groq · opentelemetry-instrumentation-writer · opentelemetry-instrumentation-openai-agents · opentelemetry-instrumentation-together