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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.28.1.tar.gz
Algorithm Hash digest
SHA256 606d72974cf4ad6a852fc5c6a941983d2b42e19eea1c4dfc745feca860ad029a
MD5 9d14bd2f3b1f43972155208b67632c1b
BLAKE2b-256 fe4a2ea311f43000d096fcd2275a4ee925bf16c38cfbe3fef07a6fe4828d4f71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.28.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f672c7f77a600ad7889f1a303ca7ec5589411426be1f918a9019c5aa6fdc94ec
MD5 58b04a0e24118f75d165ec7004f032ca
BLAKE2b-256 a033eb86311c6faa8527763ec105979620d754ab67c41810df88b1e4632c7b7e

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