Anthropic Java SDK v2.72.0 发布:新增遥测与 OpenTelemetry 支持
原标题:v2.72.0
AI 摘要
Anthropic 发布 Java SDK v2.72.0,新增 Managed Agents 的 execution_identity 字段、Admin API 的遥测目标管理端点,以及客户端 followRedirects 选项。客户端默认集成 OpenTelemetry,为 API 调用、流式响应和工具运行生成 span,并新增 io.opentelemetry:opentelemetry-api 1.62.0 依赖,可通过配置关闭。此外修复了 token 请求重定向、代理认证头敏感处理及未知事件类型等问题。
正文节选
### Features * **api:** add execution_identity to Managed Agents agents * **api:** add organization_type_not_supported error to spend limit lists * **api:** add telemetry destination test endpoint * **api:** add telemetry destinations to the Admin API * **client:** add a followRedirects request option * **client:** emit OpenTelemetry spans for API calls, streams and tool runs. They are on by default and need no setup in the SDK: the spans appear once the application has registered a tracer prov