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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.26.2.tar.gz
Algorithm Hash digest
SHA256 56b41f98e414bbcb29e51f009bdec3ba905c4c5ed395c620d5f768201d3c873f
MD5 4aaf5d12cb01bacb7073ea4d454fe501
BLAKE2b-256 c17bd4ac92327f0290b49da4c01a9d7ccd4ca16b6bd38624ba6c5a402447c0c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.26.2-py3-none-any.whl
Algorithm Hash digest
SHA256 968fbc6107a91f00457072a64b88d9368f497b6d365a3f49c16745255c3adf61
MD5 446f59bcf3511ff4e9b0a2df966f0d39
BLAKE2b-256 1c301be56e88bafae35bb906b926242d597192f1404b6d9fe2ffd6c1c99bfbe0

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