MistralClient with wrapMistral() to trace chat and completion calls.
Installation
Setup
Example
What gets captured
| Field | Details |
|---|---|
| Model | mistral-large-latest, mistral-small-latest, codestral-latest, etc. |
| Input tokens | From usage.prompt_tokens |
| Output tokens | From usage.completion_tokens |
| Cost | Calculated from token counts and Mistral pricing |
| Latency | Total request duration |
| Finish reason | stop, length, tool_calls |

