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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.33.7.tar.gz
Algorithm Hash digest
SHA256 66d42ae836896ec0ca2fe998110405bef41a5a2215fb5b1c421f95783a1a29c7
MD5 ad5432a34be7b792581ae12d125e8ed7
BLAKE2b-256 9cff572437350410eb2cbc014da06827600bb125fda47ba07dc2c0855f94c4ed

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations:

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.33.7-py3-none-any.whl
Algorithm Hash digest
SHA256 5fbb1bd1dde8c709dec44cac06fe5ddb90470d1447f0a1a201791875c83e9dc6
MD5 ab370a53e6a0362ce805f9acf2852285
BLAKE2b-256 dc77f73fbff5e349944619e0c545ce7fd12bfe1bb3500aa500d3b29986ac220f

See more details on using hashes here.

Provenance

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