A minimal logging wrapper
Wrap your OpenAI calls in one function on your server that starts a timer, makes the call, reads usage, and writes a trace record with the model, tokens, latency, status, cost, feature and user. Tracewell's screens then read those records from your API.
Detailed token fields
The usage object can also break tokens down, such as cached input tokens and reasoning output tokens. If your pricing depends on them, store them too and add columns to the traces table.
Multi-step calls
When one user request makes several model and tool calls, log each as a span under one trace, so the trace explorer shows the whole chain. See the OpenTelemetry guide.