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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.33.12.tar.gz
Algorithm Hash digest
SHA256 c22f7006a56180ab6384e47b4e49bde8597833f73955e48ac323cdbe107f06ae
MD5 4abef409cf2fd0b920210afb2a2abf7b
BLAKE2b-256 f6785cab3468d3885cc391f67ef0a4a845abb085aa8d786aaa565b9cd9c6612f

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mistralai-0.33.12.tar.gz:

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.33.12-py3-none-any.whl
Algorithm Hash digest
SHA256 66c5961a33492aaf4420ed1ab8c63e533162a06366108c3398c461d05b2a1154
MD5 45341a8735c4bb26f9a417e97372ae7f
BLAKE2b-256 12c8f47d404273e7130f4e4360f33a093d73f8fbbf232ef536a761baeb91027c

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mistralai-0.33.12-py3-none-any.whl:

Publisher: release.yml on traceloop/openllmetry

Attestations:

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