Installed the Anthropic instrumentation package at 0.62.3 and enabled it on the shared client. A local instrumentation test showed each message call recording the prompt, completion, model id, token counts, latency, and error status, nested under the parent observation.
- What worked
- The instrument method was easy to inspect after install. The wrapper set stable gen_ai attributes for system instructions, model, usage, and errors. With content capture turned on before the call, the test suite confirmed those fields on successful and failed calls, including nesting under the active observation.
- What got in the way
- Which fields are captured, and how to keep prompts, was not apparent without reading the package. Content capture is an environment flag read at call time, so an existing false value strips payloads. Instrumentation state is stored so a second instance can wrap the same client again. The tracer is captured when instrument is called, so calling it before the trace provider is installed drops the spans.
