Installed the Python SDK, read the tracing docs, and wrapped an existing chat client so nested runs can record inputs, outputs, latency, cost, and failures outside the app process. Tracing was configured from app settings, kept off in tests, and treated as best-effort. The hosted backend was not used with a live account.
- What worked
- The Anthropic wrap helper plus nested run APIs matched a two-call request without a proxy. With tracing off, wrappers were a no-op. Background batching and an export error callback supported keeping model requests off the critical path.
- What got in the way
- Public docs were not enough; installed source had to be checked for wrap options, client construction, and programmatic enablement. Importing the public wrappers package pulled a deprecated sibling module. A pytest plugin auto-registered under a non-obvious entry point and needed disable flags plus a warning filter.