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-if-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 IFTRACER_TRACE_CONTENT environment variable to false.

IFTRACER_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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_if_instrumentation_mistralai-1.0.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_if_instrumentation_mistralai-1.0.0.tar.gz
Algorithm Hash digest
SHA256 80672400f22b815acbfc2ff62b2b7121707877c853c99a7f0e85bd0d108c5cd9
MD5 d9c2a407454a3798f017ce62f0aac5fa
BLAKE2b-256 efc4ef827e9a96c696de585aeff82506d694d0cbfba0645d57adc3a95c7bf949

See more details on using hashes here.

File details

Details for the file opentelemetry_if_instrumentation_mistralai-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_if_instrumentation_mistralai-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ff6459f73a62e0c8eb38cd4d290f20d3c181e4fad3698e27096830fc734a251
MD5 6e3ed5ce3d3b40e70e03b8c5e223bb00
BLAKE2b-256 a1a1131f21eae030717328878e3ea0fa2d5cb68fbbadaa0f96a955d87fbf3c4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page