tracing

command
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Tracing demo

Follows one logical operation across two OS-process thralls. An api thrall receives a request and relays it to a db thrall with ctx.Cast, which propagates the correlation trace. Both thralls log the same trace, so the path can be reconstructed from the logs.

The same api/db pair is written in all three languages - main.go, trace.ts, trace.py - with identical behaviour. Pick one manifest below; the interaction afterwards is the same.

Run

Build the runtime once, then run one of the three variants.

export GOTOOLCHAIN=local
mise exec go@latest -- go build -o bin/aether ./cmd/aether

Go (aether.toml):

mise exec go@latest -- go build -o bin/trace-demo ./examples/tracing
cd examples/tracing
AETHER_LOG_FORMAT=json AETHER_LOG_LEVEL=debug ../../bin/aether up -f aether.toml

TypeScript (aether-ts.toml):

bun install
cd examples/tracing
AETHER_LOG_FORMAT=json AETHER_LOG_LEVEL=debug ../../bin/aether up -f aether-ts.toml

Python (aether-py.toml):

cd examples/tracing
python -m venv .venv
.venv/bin/pip install -r requirements.txt
AETHER_LOG_FORMAT=json AETHER_LOG_LEVEL=debug ../../bin/aether up -f aether-py.toml

In another shell, send a request to the edge (the CLI mints a fresh trace):

cd examples/tracing
../../bin/aether cast api request '{"item":"widget"}'

What to look for

The api and db log lines carry the same trace, e.g.:

{"time":"...","level":"INFO","component":"thrall","app":"trace","name":"api","msg":"api received request, relaying to db","trace":"_INBOX.abc123"}
{"time":"...","level":"INFO","component":"thrall","app":"trace","name":"db","msg":"db stored value","trace":"_INBOX.abc123","payload":"{\"item\":\"widget\"}"}

Filter one operation out of the interleaved stream by its trace:

# from the `aether up` output
... | grep '_INBOX.abc123'

The SDK also emits a handling call/handling cast debug line per message with the same trace, so a log line and a trace can always be joined.

Metrics

While it runs, scrape the runtime's own telemetry:

curl -s 127.0.0.1:7391/metrics

Documentation

Overview

Command trace-demo is a two-thrall tracing example: an "api" thrall relays an incoming request to a "db" thrall via ctx.Cast, which propagates the correlation trace. Run with AETHER_LOG_LEVEL=debug to see both thralls log the same trace for one logical operation.

One binary plays both roles, selected by AETHER_NAME (injected by the lord).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL