OpenInference instrumentor for Mistral AI Python SDK. Automatically traces Mistral AI calls (chat completions, embeddings, etc.) and exports spans in OpenInference format for observability with Arize AI, Phoenix, and other OpenTelemetry backends. Current version: 2.0.4. Requires Python >=3.9,<3.15. Release cadence: irregular, bundled with OpenInference monorepo.
pip install openinference-instrumentation-mistralaiNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic setup with OTLP exporter. Replace endpoint with your observability backend.
Update import to: from openinference_instrumentation_mistralai import MistralAIInstrumentor
Ensure MistralAIInstrumentor().instrument() is called before any import of mistralai, or at least before creating a client.
Pin opentelemetry-api >=1.0,<2.0 and opentelemetry-sdk >=1.0,<2.0.
Upgrade to Python >=3.9.