Catalog PyPI
Back to packageRELEASE DETAILS

1.0.1

PyPI

agent-instrumentation

Automatic instrumentation for Python applications using Traceloop SDK

Published18 Nov 2025
Direct dependencies1
Transitive dependenciesNot calculated

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.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
traceloop-sdk
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
traceloop-sdk>=0.47.0runtime

Distribution files

2 collected
agent_instrumentation-1.0.1-py3-none-any.whl

bdist_wheel · 10.28 KB · Python py3

Source file
agent_instrumentation-1.0.1.tar.gz

sdist · 10.94 KB · Python source

Source file

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_version:4a7186b7f389ddaf451f89197e238e8f35b69b514a417bc4fa43594e475b885b

Other collected versions

View all collected versions →