Skip to main content

Setup

  1. Install Langtrace’s SDK and initialize the SDK in your code.
Note: You’ll need API keys from Langtrace and MistralAI. Sign up for Langtrace and/or MistralAI if you haven’t done so already.
Python
  1. Setup environment variables:
Shell

Usage

Generate a simple output with your deployment’s model:
You can now view and analyze your traces on the Langtrace dashboard. Here’s what you can expect:
  1. View all your Mistral AI traces in the main traces view: Mistral AI Traces Overview
  2. Dive deep into conversation details and responses: Mistral AI Conversation Details
  3. Analyze span timing and relationships in the trace visualization: Mistral AI Span Graph
Want to see more supported methods? Check out the sample code in the Langtrace Mistral Python Example repository. For advanced usage patterns and detailed examples, explore the Langtrace Mistral Cookbook in the official Mistral AI cookbook repository.