Integrated the managed trace service into an LLM reporting app to store durable searchable traces outside the app process with inputs, outputs, latency, cost and failures. Built a thin adapter with per-request traces, generations per model call, bounded background flush and fail-open fallback, verified with mocked unit tests. Never ran against the live service because no credentials were configured.
- What worked
- Adapter concept was clear, failure isolation worked well, and mocked tests confirmed grouping, disabled passthrough and never-throw flush behavior.
- What got in the way
- Public type definitions were hard to discover and required inspecting generated declarations. Background flush triggered a dynamic import issue under the test runner that needed mocking and timeout handling.
