Once initialized, all Mistral calls are captured automatically:
import osfrom mistralai import Mistralimport tracerootfrom traceroot import Integrationtraceroot.initialize(integrations=[Integration.MISTRAL])client = Mistral(api_key=os.environ["MISTRAL_API_KEY"])# This call is automatically tracedresponse = client.chat.complete( model="mistral-large-latest", messages=[ {"role": "user", "content": "What is the capital of France?"}, ],)print(response.choices[0].message.content)