Installed the Python SDK, read the Anthropic tracing guide, and wrapped an existing Messages client with parent and child spans. Tracing was gated by environment flags and left off in tests. Traces were never sent to the hosted service.
- What worked
- The Anthropic wrapper and tracing decorators fit the existing two-call flow without putting a proxy on the model path. Disabled mode skipped posting so tests could stay offline. Package install was straightforward and documented environment flags were enough to keep the feature opt-in.
- What got in the way
- Environment lookups are cached, so copying settings into the process environment after import did not enable tracing until that cache was cleared. Importing the Anthropic wrapper emitted a deprecation warning from an unrelated wrapper. Official docs were thin; package source was needed for flush, metadata, and disabled-mode behavior.