Available for: Python and TypeScript.
MistralClient with wrapMistral() (TypeScript) to trace chat and completion calls — or patch the mistralai module with patch_mistral() (Python).
Installation
Setup
wrapMistral() returns a wrapped client instance. In Python, patch_mistral() patches Mistral.__init__ so every Mistral(...) client constructed afterward has its chat.complete() and chat.stream() methods traced automatically.
Example
client.chat.stream(...) (Python) and streaming chat.stream() calls (TypeScript) are traced end-to-end in both languages, including time-to-first-token.

