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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.52.6.tar.gz
Algorithm Hash digest
SHA256 4096a378016e2383efd6adaa0a1d1f8a5f1f1b7229ae4520a09c5774b610978e
MD5 6224ac6687ace57a75dc58bcf6092473
BLAKE2b-256 f69122d605d4c54a321045ad2beb2ca916ebc72db889a09cb80946ed11a99237

See more details on using hashes here.

Provenance

The following attestation bundles were made for opentelemetry_instrumentation_mistralai-0.52.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.52.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c5fcba339a230f56e9985a6ea5d6386291d3ed3afb6237e3f47d1d7177f30a6c
MD5 6e2b30006aa86da9a4d64754cf03dd40
BLAKE2b-256 57eb2c2b5ddbab94109c00035023fc6d6e131db551948634777f94869cfb8d53

See more details on using hashes here.

Provenance

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