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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.40.12.tar.gz
Algorithm Hash digest
SHA256 fdcbd6b8ccd2269b7c44a6840dabaf568f4f13882f2b7bf93394e3ccbd73ff05
MD5 646f7b8eb99c8f63027f940faf1a6916
BLAKE2b-256 325a41a333a0da4bd358de152052bb3c9e188c49d61d50f26e45e1d30ff9a00e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for opentelemetry_instrumentation_mistralai-0.40.12-py3-none-any.whl
Algorithm Hash digest
SHA256 4698a7dc044e427897dca67b883e2da1e907ecbd63faf3f2d916f7834424ce46
MD5 09efd161cb5771d5d6e691d3eae75418
BLAKE2b-256 9cccdee5a70974f728cf199d35763a004653c5e8f16a2deb1d999f4a8c74c822

See more details on using hashes here.

Provenance

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