Integrated managed tracing for every model call via the official OpenAI wrapper and OTel span processor, with no-op behavior when keys are absent and flush on shutdown. Setup required reconciling several JS packages and registry readmes to find the supported Responses API path. Contract tests with mocks pass, but no live export to the managed service was observed in the task.
- What worked
- Wrapper approach captured inputs, outputs, latency, usage and failures at a single choke point without breaking requests when keys were missing. Shutdown flush and per-upload session correlation were straightforward to express.
- What got in the way
- Package boundaries and version guidance were unclear at first, leading to installing one extra tracing package that was later removed after reading type definitions.
