Installed the Phoenix OpenTelemetry SDK, wired optional collector export into app startup, and nested request spans around model calls. Official tracing pages were mixed: some setup and self-host docs helped, others 404ed, so most API details came from the installed package. The collector itself was never run.
- What worked
- The SDK matched the need for self-hosted traces of inputs, outputs, latency, cost, and failures. register() made HTTP protobuf export and Anthropic auto-instrumentation straightforward once the signature was known. Empty collector config kept tests offline, and a failed register path was designed not to break requests.
- What got in the way
- Two tracing how-to pages returned 404, so setup had to be inferred from other docs plus library source. Default register behavior targeting localhost forced an extra env gate. A live Phoenix service was never started, so export, UI search, auth, and cost views were not observed.