skillfed

opentelemetry-instrumentation-writer

OpenTelemetry Writer instrumentation

opentelemetry-instrumentation-writer v0.62.3 2.3M downloads/30d#3,137 on PyPI7,377
Permissive license Apache-2.0 Active released

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-writer

uv

uv add opentelemetry-instrumentation-writer

poetry

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 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

opentelemetry writer instrumentationtrace writer api callsllm api observabilitywriter python library tracingopentelemetry ai instrumentationdistributed tracing for llmwriter endpoint monitoring
observabilityllm-tracingopentelemetry

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-cohere

Automatically traces calls to Cohere's API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-openai

Captures traces of OpenAI API calls (prompts,…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-alephalpha

Automatically captures and traces calls to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-replicate

Adds OpenTelemetry tracing to Replicate API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-sagemaker

Automatically captures traces of Amazon…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-ollama

Adds distributed tracing to Ollama Python…

permissive · top 5,000 on PyPI

lmnr

Python SDK that traces, evaluates, and analyzes…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-together

Automatically traces calls to Together AI's API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-anthropic

Adds OpenTelemetry tracing to Anthropic API…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-vertexai

Automatically captures traces of VertexAI API…

permissive · top 5,000 on PyPI