opentelemetry-instrumentation-writer
OpenTelemetry Writer instrumentation
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that automatically intercepts and traces calls made through the Writer Python library. Once initialized with a single call to `WriterInstrumentor().instrument()`, it captures request and response data as OpenTelemetry spans, allowing you to observe and debug your LLM application's interactions with Writer's API.
By default, it logs prompts, completions, and embeddings to span attributes for visibility into application behavior. However, you can disable this content logging 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 standard OpenTelemetry exporters, so traces flow into your existing observability infrastructure.
Use it for:
- Debug LLM application behavior by inspecting prompts, completions, and API latency in your tracing backend
- Monitor Writer API usage patterns and performance across your application without modifying existing code
- Correlate Writer API calls with other distributed traces in a microservices architecture using OpenTelemetry context propagation
- Audit and log LLM interactions for compliance, with the option to redact sensitive content via environment variable
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Automatically traces calls to Writer's API endpoints when using the official Writer Python library, capturing request and response data as OpenTelemetry spans.
Yes, if you use the Writer Python library and have an OpenTelemetry observability stack. The package is actively maintained, has no known vulnerabilities, and requires minimal setup. Install it only if you need tracing visibility into Writer API calls; it adds no value without an OpenTelemetry exporter and backend already in place.
Install
opentelemetry-instrumentation-writer on PyPI
pip
pip install opentelemetry-instrumentation-writeruv
uv add opentelemetry-instrumentation-writerpoetry
poetry add opentelemetry-instrumentation-writerInstalling opentelemetry-instrumentation-writer
Before you install
Low friction install with a small, focused dependency tree. The package is actively maintained with recent releases and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows commercial and private use without restriction, making it safe for production applications.
Quickstart
pip install opentelemetry-instrumentation-writer
from opentelemetry.instrumentation.writer import WriterInstrumentor
WriterInstrumentor().instrument()
Requires Python 3.10 or later. The Writer Python library must be installed separately for instrumentation to have effect.
Verify before relying
- Whether instrumentation works with all Writer API endpoints or only a subset
- Performance overhead of tracing on typical Writer API call latency
- How span attributes are structured and what metadata is captured beyond prompts and completions
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 | 2,327,210/month — #3,137 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_writer-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
opentelemetry-instrumentation-cohereAutomatically traces calls to Cohere's API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-openaiCaptures traces of OpenAI API calls (prompts,…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-alephalphaAutomatically captures and traces calls to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-replicateAdds OpenTelemetry tracing to Replicate API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-sagemakerAutomatically captures traces of Amazon…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
lmnrPython SDK that traces, evaluates, and analyzes…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-togetherAutomatically traces calls to Together AI's API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-anthropicAdds OpenTelemetry tracing to Anthropic API…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-vertexaiAutomatically captures traces of VertexAI API…
permissive · top 5,000 on PyPI