Skip to main content

OpenTelemetry Mistral AI instrumentation

Project description

OpenTelemetry Mistral AI Instrumentation

This library allows tracing calls to any of mistralai's endpoints sent with the official Mistral AI library.

Installation

pip install opentelemetry-instrumentation-mistralai

Example usage

from opentelemetry.instrumentation.mistralai import MistralAiInstrumentor

MistralAiInstrumentor().instrument()

Privacy

By default, this instrumentation logs prompts, completions, and embeddings to span attributes. This gives you a clear visibility into how your LLM application is working, and can make it easy to debug and evaluate the quality of the outputs.

However, you may want to disable this logging for privacy reasons, as they may contain highly sensitive data from your users. You may also simply want to reduce the size of your traces.

To disable logging, set the TRACELOOP_TRACE_CONTENT environment variable to false.

TRACELOOP_TRACE_CONTENT=false

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file opentelemetry_instrumentation_mistralai-0.22.1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.22.1.tar.gz
Algorithm Hash digest
SHA256 598b575cee99fb4715087ab9afce50fb99ba22a8e916077226e4282f807768b8
MD5 c232cab0bc0d99c955b026952afddd47
BLAKE2b-256 eaf3a4d3c2249c93c6417821f128d0a5d102dd990ef72be5e6202fbb96abd7fb

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_mistralai-0.22.1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.22.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39589b32a46644c33ab29c88e3fc011c73bd88bfa36ede89c737b4eacff42ecb
MD5 6184da7928a34d907efab890f08de2ee
BLAKE2b-256 03429318fb45fc037e3a63ec19df0ffdfea22df30a530bbe37fc269086634ad0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page