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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.19.0.tar.gz
Algorithm Hash digest
SHA256 e268ccb7da2ec8a7e570a3866184ad6453ce8f96f91c846ecc1aa57d98e3bc6d
MD5 c828b7297cf431e85533b42a85483adc
BLAKE2b-256 4cd4f78262c3c18fe643f842f21e2cfeacb3953147631ec92b71d73118cc016c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5c166edbc5244ec2d9df6141adb0fd576f60a7c327e8cf2cf31ef04faf1aaa96
MD5 0d154c768adcb9d4648bdc4a78f64baa
BLAKE2b-256 d2b6e57832d25b1d193fd806a256135a6e4eb37cb3d7eb0b7de669b54a862e11

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