opentelemetry-instrumentation-alephalpha
OpenTelemetry Aleph Alpha instrumentation
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that automatically intercepts and traces all calls made through the official Aleph Alpha Client library. Once initialized with a single call to `AlephAlphaInstrumentor().instrument()`, it captures request and response data as OpenTelemetry spans, enabling you to observe and debug your LLM application's behavior.
By default, the instrumentation logs prompts, completions, and embeddings to span attributes for full visibility into your application's LLM interactions. This can be disabled by setting the `TRACELOOP_TRACE_CONTENT` environment variable to `false` if you need to protect sensitive user data or reduce trace size. The package integrates with the OpenTelemetry ecosystem, meaning the traces it generates can be exported to any backend that supports OpenTelemetry (Jaeger, Datadog, etc.).
Use it for:
- Debug LLM application behavior by examining prompts, completions, and embeddings in distributed traces.
- Monitor Aleph Alpha API performance and latency across your application without modifying client code.
- Collect observability data for quality evaluation and cost analysis of LLM calls in production.
- Integrate Aleph Alpha tracing into an existing OpenTelemetry observability stack.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Automatically captures and traces calls to Aleph Alpha's LLM endpoints when using the official Aleph Alpha Client, integrating with OpenTelemetry for observability.
Yes, if you are using the Aleph Alpha Client and need observability into LLM calls. The package is actively maintained, has no known vulnerabilities, and integrates seamlessly into OpenTelemetry workflows. Be aware that by default it logs sensitive data (prompts and completions) to traces—set TRACELOOP_TRACE_CONTENT=false if privacy is a concern.
Install
opentelemetry-instrumentation-alephalpha on PyPI
pip
pip install opentelemetry-instrumentation-alephalphauv
uv add opentelemetry-instrumentation-alephalphapoetry
poetry add opentelemetry-instrumentation-alephalphaInstalling opentelemetry-instrumentation-alephalpha
Before you install
Low friction install with four runtime dependencies, all from the OpenTelemetry ecosystem. The package is actively maintained with a recent release (4 days old) and no known vulnerabilities.
License in practice
Apache-2.0 is permissive; you can use this package freely in commercial and private projects without restriction, though you must include a copy of the license.
Quickstart
pip install opentelemetry-instrumentation-alephalpha
from opentelemetry.instrumentation.alephalpha import AlephAlphaInstrumentor
AlephAlphaInstrumentor().instrument()
Requires Python 3.10 or later; the Aleph Alpha Client must be installed separately for instrumentation to have effect.
Verify before relying
- Whether this instrumentation works with all versions of the Aleph Alpha Client or only specific versions.
- Performance overhead when tracing is enabled, especially with TRACELOOP_TRACE_CONTENT set to true.
- How to configure which OpenTelemetry exporters receive the trace data.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 6,886,464/month — #1,822 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_alephalpha-0.62.3-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
aleph-alpha-clientPython client library for calling the Aleph…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-groqAutomatically captures traces of Groq SDK API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-writerAutomatically traces calls to Writer's API…
permissive · top 5,000 on PyPI
aliyun-traceManually creates traces for LLM applications…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-vertexaiAutomatically captures traces of VertexAI API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-togetherAutomatically traces calls to Together AI's API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-mistralaiAutomatically captures and traces calls to the…
permissive · top 5,000 on PyPI
promptflow-tracingCaptures and visualizes the internal execution…
permissive · top 15,000 on PyPI