Skip to main content

pytracer-langgraph

pyTracer adapter for LangGraph and LangChain. It auto-instruments an agent through LangChain's callback system, so you do not add @op by hand: model calls, tool calls, and graph nodes are captured as pyTracer spans automatically.

import pytracer_sdk as pytracer
from pytracer_langgraph import PyTracerCallbackHandler

pytracer.configure(
    pytracer.HTTPTransport("https://gateway.internal", api_key="YOUR_KEY"),
    service_name="my-agent", branch="main", commit="abc123",
)

handler = PyTracerCallbackHandler()
app.invoke(inputs, config={"callbacks": [handler]})   # spans captured for this run

on_chat_model_start / on_llm_start become LLM spans, on_tool_start become tool spans, and LangGraph nodes become agent spans, all linked into one trace by the run tree.

Metadata

Release files for pytracer-langgraph 0.1.0

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

Source distribution (sdist)

Source distribution for pytracer-langgraph 0.1.0
File Size Uploaded
pytracer_langgraph-0.1.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytracer-langgraph 0.1.0
File Interpreter ABI Platform
pytracer_langgraph-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / pytracer_langgraph-0.1.0.tar.gz

Download URL pytracer_langgraph-0.1.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fb9806b22e50a3f0ed2942c6a400e039b72a6735b7735cd943717fe59a83d9c5
BLAKE2b-256 checksum
How to use checksums
45c754d9e27add98ae6d555a63a8b007d782d535dddd28492bae78be9a0dd459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release files / pytracer_langgraph-0.1.0-py3-none-any.whl

Download URL pytracer_langgraph-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65da312fd897280796f0b356c54fc27dee643c4b93707d0eb2c1d9ecfd0c4031
BLAKE2b-256 checksum
How to use checksums
3387cec9def3763073d2bd093ba28ac47ac9c8c5faee589d40675664c2237489
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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