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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.25.4.tar.gz
Algorithm Hash digest
SHA256 cb31d56dac99979b5da64156f254d949e01fa8a2d2293c4258d4160246de3786
MD5 fd86e27e5c5241b9623b299cfe787e23
BLAKE2b-256 351331d248bf37837a6e41694ba5f0268b48f10d8cd98307a10dd0bad5d62740

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.25.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3f6f05449d467a0e512776a1c5ec00412cce31718e9cf30e2147e237ea71485f
MD5 1f229fdf0143655280a669fbefc55c0d
BLAKE2b-256 08daa8748b34d750a6991f9fed08bcb2f14df539e388b4280be21d93a450aab8

See more details on using hashes here.

Provenance

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