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


Release history Release notifications | RSS feed

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.52.0.tar.gz
Algorithm Hash digest
SHA256 813efed2a849a1251f7e4853440eeb96f210bef3c00e49283751c3c974df0142
MD5 1c76c5aae5586f7202186645aa40bc73
BLAKE2b-256 a1b76795e7dea3472943629c23835f38d5dd236deac8d382c2fb1149eb8291eb

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.52.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ae579ce87c41392f55478b628a1c3ca93eabac1377907e7c0bfc9f792d8e178
MD5 a371e1fcd017f56f75b694e3caa9d4bd
BLAKE2b-256 e081e6f723a6d0a3533fddfbe43b9757384bf0fe60f1498a5714768c31a235da

See more details on using hashes here.

Provenance

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

Publisher: release.yml on traceloop/openllmetry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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