Technical depth: Observability contracts and inventory.
Loopex observes itself through two mechanisms that answer different questions and are bounded in different ways. This document is the reference for what each one promises a developer, and — more importantly — what neither of them is allowed to become.
A trace session is a runtime-scoped observation of calls inside the processes one runtime owns. A host turns it on through the runtime reference it already holds, names the modules it wants, and turns it off. No source changes.
Telemetry events are spans emitted at every port callback and every coordinator transaction cut. Core emits them and attaches nothing; one edge application carries them into a runtime's bounded diagnostics plane.
The founding decision is accepted ADR 0030, which fixes the emission inventory exactly, and the vision change that admits the single telemetry event dispatcher into core.
Technical depth: The emission inventory.
This is the constraint that shapes everything else.
Loopex keeps truth planes apart: private recovery records, committed public events, snapshots, transient progress, and diagnostics all have different guarantees. Trace entries and telemetry spans are diagnostics. They are the weakest plane in the system, and code must never be written that depends on one having arrived.
A dropped span is a normal outcome, not an error. A trace session that hits its rate ceiling drops entries and says so. If a decision needs to survive, it belongs in a durable record, not in something an operator can turn off.
Neither mechanism is reachable from anything a session carries. No session command, client content, model output, project resource or app-server request can start, change or stop a trace session or alter what a span reports. The only route in is the runtime reference the host holds, which is the same rule every other runtime operation follows.
Technical depth: Trace session domain.
telemetry runs handlers synchronously in the process that emitted the event.
A handler that blocks blocks a session coordinator; a handler that raises would
take the coordinator with it were telemetry not isolating it.
So core emits and attaches nothing. The one Loopex-attached handler lives in
loopex_telemetry, an edge application, and does almost nothing: it builds a
bounded plain item and offers it to the runtime's asynchronous diagnostics
admission, which takes it or drops it and counts the drop. A coordinator
emitting a span pays for one map and one send.
This is also why the dependency budget admits exactly one external dependency in core. The event dispatcher is named by the vision's dependency doctrine; nothing else gets in on the strength of being useful.
Technical depth: The only place a span opens.
Technical depth: The edge handler.
At its administrative level a trace session renders arguments and returns. That is the only place in the system where a diagnostic comes close to content, and it is handled as a contract rather than as a best-effort scrub.
Redaction runs over the term before anything is rendered. The alternative — render, then filter the text — puts the secret in memory as a string and leaves the filter guessing where it ends. A replaced value becomes a typed placeholder carrying the byte size and digest of what it replaced: enough to correlate two entries about one payload, never enough to read it.
The same principle governs telemetry exceptions. A span reports an error class and not the exception's own words, because a message or a stack trace carries exactly the content every other rule removes. That is why these spans are emitted directly rather than through the library's own span helper, which attaches kind, reason and stacktrace to its metadata.
Where redaction cannot be enough, the durable companion's credential sender excludes itself from every current and future Loopex trace session before it receives anything, and the call does not proceed without that exclusion. The ephemeral profile also excludes its sensitive provider caller from Loopex trace sessions, but runs in the host VM: host-installed trace, telemetry and logger handlers and crash diagnostics remain in the host's trust audience. Neither profile treats diagnostic redaction as permission to publish a secret.
Technical depth: Redaction rules.
Every ceiling is a maximum a host may narrow and cannot raise. A configuration that tries to raise one is refused by name rather than silently corrected.
When a bound is reached, the system drops and counts, and reports the count as its own entry. An operator is told what they did not see. A traced process is never delayed by being traced: the tracer never calls into one and never replies to one, so tracing cannot change the behaviour it is observing.
Technical depth: Trace session ceilings.
- Architecture — truth planes and dependency direction.
- App server protocol — the wire surface's own bounded planes.
- Operator observability runbook — turning it on and reading it.
- Getting started — a first embedded host and its first trace session.
Back to the developer index.