--- id: opentelemetry-instrumentation-writer version: "0.62.3" license: Apache-2.0 license_treatment: permissive maintenance: active --- # opentelemetry-instrumentation-writer — OpenTelemetry Writer instrumentation License: permissive · Maintenance: active · Downloads: 2.3M/mo ## 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 above — 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 pip install opentelemetry-instrumentation-writer uv add opentelemetry-instrumentation-writer poetry add opentelemetry-instrumentation-writer ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 2.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags opentelemetry writer instrumentation, trace writer api calls, llm api observability, writer python library tracing, opentelemetry ai instrumentation, distributed tracing for llm, writer endpoint monitoring, observability, llm-tracing, opentelemetry [View on SkillFed](https://skillfed.io/packages/opentelemetry-instrumentation-writer) · [View on PyPI](https://pypi.org/project/opentelemetry-instrumentation-writer/)