Catalog PyPI
PACKAGE EXPLORERView in registry

agent-instrumentation

PyPI

Automatic instrumentation for Python applications using Traceloop SDK

Versions collected1
Direct dependencies1From release 1.0.1
Last observed20 Oct, 22:27 UTC

README

Version 1.0.1 documentation

Agent Instrumentation

Automatic OpenTelemetry instrumentation for Python agents using the Traceloop SDK, with trace visibility.

Overview

agent-instrumentation enables zero-code instrumentation for Python agents, automatically capturing traces for LLM calls, API requests, and other operations. It seamlessly wraps your agent’s execution with OpenTelemetry tracing powered by the Traceloop SDK.

Features

  • Zero Code Changes: Instrument existing applications without modifying code
  • Automatic Tracing: Traces LLM calls, HTTP requests, database queries, and more
  • OpenTelemetry Compatible: Uses industry-standard OpenTelemetry protocol
  • Flexible Configuration: Configure via environment variables
  • Framework Agnostic: Works with any Python application or framework

Installation

pip install -i agent-instrumentation

Quick Start

1. Set Required Environment Variables

export AMP_APP_NAME="my-application"
export AMP_OTEL_EXPORTER_OTLP_ENDPOINT="https://your-otel-endpoint.com"
export AMP_API_KEY="your-api-key"

2. Run Your Application

Use the agent-trace command to wrap your application:

# Run a Python script
agent-trace python my_script.py

# Run with uvicorn
agent-trace uvicorn app:main --reload

# Run with any package manager
agent-trace poetry run python script.py
agent-trace uv run python script.py

That's it! Your application is now instrumented and sending traces to your configured endpoint.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
1.0.118 Nov 20251

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e6aac4e4a0e0edf54122e2ae3932205c1aefbdb70517a3ecbd7d3010966a41b8