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.27.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.27.0.tar.gz
Algorithm Hash digest
SHA256 4b6c264426512c9b1257e26a4db5bb86970f775b5d181530d49dae484dcf4c91
MD5 6b5d135ef1fec01cc0218ae81fe43c0c
BLAKE2b-256 067e6778928b6457bc985d0cb6aa77cefa59a69200a1448e347a2bfaf21cba5a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.27.0-py3-none-any.whl
Algorithm Hash digest
SHA256 802a23d860d3b5eee4e405381761e3255b7336e8f1bf7b007402d615bae6a47a
MD5 c851315e64362071c414c2b9efa4d357
BLAKE2b-256 e936d2ad757060a3526d4d0e8b42a267599cf05c52f7e49d8dde4add61746e4f

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