Skip to main content

ExtensiTrace

Python Package for Agent Workflow Tracking

ExtensiTrace allows for a simple way to track all agent actions including python functions and all openai tool calls.

Install from PyPI

pip install extensitrace

Usage

from extensitrace import ExtensiTrace

client = OpenAI() # Optional to pass in
connector = MongoConnector(...) # Optional connector, defaults to local
# Logger writes to a jsonl file locally by default 
et: ExtensiTrace = ExtensiTrace(connector=connector) # See constructor in extensitrace/extensitrace.py for more info

# Need track=True for top level
et.log(track=True)
def top_level_func():
    lower_level_func()
    
et.log()
def lower_level_func():
    pass

Notes to keep in mind

  • Tracks one openai call per function
  • Streaming openai calls not captured - the tracer is meant for tracking tool calls
  • Support for Openai only right now
  • The client objects should be the same across files if it is being passed in manually
  • Singleton class, however instantiation methods across files must match, recommend creating and importing from a file (see example below)
  • If this is very useful to you and want to use it in prod I'm happy to write an async interface for log dumps

Recommended Setup

tracer.py

from extensitrace import ExtensiTrace

et: ExtensiTrace = ExtensiTrace(connector=connector) 

main.py

from tracer import et

Metadata

Release files for extensitrace 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for extensitrace 0.0.2
File Size Uploaded Provenance Actions
extensitrace-0.0.2.tar.gz 12.2 kB Without provenance Details for extensitrace-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for extensitrace 0.0.2
File Interpreter ABI Platform Actions
extensitrace-0.0.2-py3-none-any.whl Python 3 none any Details for extensitrace-0.0.2-py3-none-any.whl

Total release size: 25.7 kB

Release files / extensitrace-0.0.2.tar.gz

Download URL extensitrace-0.0.2.tar.gz
Size 12.2 kB
Tags Source
SHA-256 checksum
How to use checksums
53c23d924b1f13bb124a86afa9e1b3cf68e769fde97e9d04f2656e0ec79903de
BLAKE2b-256 checksum
How to use checksums
bcbc797137064ea6a1dd94b1eb28fdac2d16ca87a8e5064c7aeeab1502d2bf65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.4

Release files / extensitrace-0.0.2-py3-none-any.whl

Download URL extensitrace-0.0.2-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
967fedef5267f52722013845e18cc6d6811f63239a662819e56f6703d31fe573
BLAKE2b-256 checksum
How to use checksums
abdaec7f29c2da0b1f68545982bf3e87099d072bad6b28c7f255289536e4c80a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.0.0 CPython/3.12.4

Security for extensitrace 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page