# Every API procedure call opens a span

A Worker trace names each oRPC call, with its request id, its database statements and its outcome.

A trace used to name only the calls whose service is an Effect program, about a third of the API. Every oRPC procedure call now opens one span, `rpc.<path>` (`rpc.todo.list`, `rpc.admin.banUser`, `rpc.appConfig.get`), with the request id in `requestId` and, when the caller was refused, the error code in `rpc.error`. The call's Hyperdrive statements and Effect spans are its children. One middleware at the head of every procedure chain opens it, so a new procedure is traced without any code of its own, and a test fails if one is not. [Observability and tracing](/docs/architecture/observability#worker-traces) · [ADR-0010](/docs/adr/0010-procedures-run-one-effect-program) · [Commit 4b1c9f4](https://github.com/CarlosZiegler/fofo/commit/4b1c9f414cbd376873647958a8f1d336e5528f5b)
