See your multi-agent app as a live graph: which agent is running, who it handed work to, and the exact prompt behind every step.
Try the demo in your browser: it plays a built-in sample run, no install needed.
When three or four agents start passing work to each other, logs stop being enough. You can't tell which agent is stuck, which tool call failed, or what prompt actually went to the model. glowtrace shows you that while the run is happening.
- Two commands, no code changes for apps that already export OpenTelemetry traces
- Live graph: agents, LLM calls and tool calls appear as they run; failures turn red
- Click any node for the system prompt, messages, response, tool args and results, tokens and timing
- Readable by default: framework internals like
RunnableSequenceand prompt templates are folded away - Works across frameworks that use OpenInference, OpenTelemetry GenAI or OpenLLMetry spans (tested end to end with LangGraph so far)
It's a debugging view for runs in progress. For stored history, evals and cost tracking, use it next to Phoenix or Langfuse rather than instead of them.
Install and run
pip install glowtrace
glowtrace serve
The UI is at http://localhost:4318. Port 4318 is the default OTLP/HTTP port, so an app that already exports traces with default settings needs no changes. Otherwise:
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export OTEL_BSP_SCHEDULE_DELAY=200 # optional, the default batch delay is 5 s
OTLP exporters only send a span when it ends, so by default a node appears once its step has finished. To see steps while they are still running, add this to your app (needs pip install "glowtrace[live]"):
import glowtrace
glowtrace.instrument()
What it reads
glowtrace maps spans that follow any of these conventions:
- OpenInference, used by the instrumentors for LangChain/LangGraph, LlamaIndex, CrewAI, the OpenAI Agents SDK and others
- OpenTelemetry GenAI semantic conventions (
gen_ai.*) - OpenLLMetry (
traceloop.*)
So far I have tested it end to end with LangGraph and with the unmodified langgraph-supervisor quickstart. The other conventions are covered by unit tests, not by real runs. If a framework shows up wrong, an issue with the trace attached helps most.
Spans that carry no agent, LLM or tool meaning (HTTP calls, prompt templates, RunnableSequence and similar) are folded into their parent so the graph stays readable. glowtrace serve --all-spans turns this off.
LangGraph setup
from openinference.instrumentation.langchain import LangChainInstrumentor
from opentelemetry import trace
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
import glowtrace
provider = TracerProvider()
provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter()))
trace.set_tracer_provider(provider)
glowtrace.instrument() # optional
LangChainInstrumentor().instrument(tracer_provider=provider)
Without OpenTelemetry
There is a small tracer for plain Python code:
from glowtrace import Tracer
tr = Tracer()
tr.session("orch", "Orchestrator", input=question)
with tr.agent("a1", "researcher", parent="orch", system=SYSTEM, input=task) as a:
with tr.tool("t1", "sql_query", parent="a1", args=sql) as t:
t.result = run(sql)
a.output, a.tokens = answer, usage
It sends JSON events over the /ws WebSocket, so any language can do the same:
| event | fields |
|---|---|
node |
id, kind (session/step/agent/llm/tool), parent, title, status, model, system, input, args |
update |
id, status (waiting/running/done/error), note, output, result, tokens |
message |
from, to, content, label, tokens |
remove |
id (its children move up to its parent) |
Examples
The examples in examples/ work with any OpenAI-compatible endpoint, including a local model through Ollama. Set LLM_BASE_URL, LLM_API_KEY and LLM_MODEL to point them somewhere else.
pip install "glowtrace[live]" openai langgraph langchain-openai langgraph-supervisor \
openinference-instrumentation-langchain opentelemetry-exporter-otlp-proto-http
python examples/test_supervisor.py # langgraph-supervisor quickstart
python examples/langgraph_team.py # small LangGraph team
python examples/real_agents.py # plain Python agents with the native tracer
python examples/fake_run.py # scripted events, no LLM
Limitations
- History is kept in memory only (the last 20,000 events) and is gone when the server stops. glowtrace is not a replacement for Phoenix or Langfuse if you need stored traces, evals or cost tracking.
- One process, no auth beyond an optional write token (
--token). Without the token anyone who can reach the port can send data. - Large runs with hundreds of nodes get crowded on screen.
How it works
your app --OTLP/HTTP--> glowtrace serve --WebSocket--> browser
The server accepts protobuf or JSON OTLP, turns spans into graph events, and keeps a history so a tab opened mid-run can catch up. Exporters often send child spans before their parents, so an unknown parent gets a placeholder node that is filled in when its span arrives.
The UI is TypeScript without a framework. It builds into one HTML file that ships inside the Python package, so pip install does not need Node.
Development
pip install -e ".[live]" pytest && pytest
cd web && npm install && npm test && npm run build
glowtrace/ holds the server, the span mapper and the tracer. web/src/ holds the UI. The built glowtrace/static/index.html is committed and CI checks that it matches the source.
MIT License
Metadata
Release files for glowtrace 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| glowtrace-0.3.4.tar.gz | 40.9 kB | With provenance | Details for glowtrace-0.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glowtrace-0.3.4-py3-none-any.whl | Python 3 | none | any | Details for glowtrace-0.3.4-py3-none-any.whl |
Total release size: 78.3 kB
Release files / glowtrace-0.3.4.tar.gz
| Download URL | glowtrace-0.3.4.tar.gz |
|---|---|
| Size | 40.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdb3c7305070e3542471696e4e694e965aae4fe655ca76d2ae929422e75d793a
|
|
BLAKE2b-256 checksum How to use checksums |
81f947daac25fa89cc2cedc8de838267009831e4bdca717870ae0b4b3601be67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / glowtrace-0.3.4-py3-none-any.whl
| Download URL | glowtrace-0.3.4-py3-none-any.whl |
|---|---|
| Size | 37.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7a33340507b2d97dccbfd62c936b3abe210b99a31be1b47dd078b6a0792bbef1
|
|
BLAKE2b-256 checksum How to use checksums |
aac1e7141789af6299d3e82e544ebeaf11e901f81df971d3604cfe59cbed7be5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for glowtrace 0.3.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for glowtrace-0.3.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA 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.