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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.33.11.tar.gz
Algorithm Hash digest
SHA256 53f9876a4b260384dc0f8fd3e8f0616b0bf383fbc1aa56e234ab8ec736d7d157
MD5 ede30f298778fb4151336d402f211aeb
BLAKE2b-256 af4c175b6939139aad761db3dc662a7b1c70d3a715dc0766df2ba7015eb92392

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.33.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e15c5bf4fff31a25c5fe7fb9ef88042fe27b103f9d76f942c3bb93d59891a16c
MD5 ddb07ba0c625f39847d3117754eea9c3
BLAKE2b-256 f1a83c31e507d74a2ca74651ce6428af0f5010f31849b4f4a227267f1895f68b

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mistralai-0.33.11-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