@arizeai/phoenix-otel@3.0.0
Arize Phoenix released @arizeai/phoenix-otel v3.0.0, upgrading to OpenTelemetry JS 3, requiring Node.js 22.15+, and modifying tracer provider and span processor configurations.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
The @arizeai/phoenix-otel package has been updated to version 3.0.0 with major breaking changes. The library now uses OpenTelemetry JS 3 (@opentelemetry/sdk-trace 3.x and @opentelemetry/api 1.10) to support recording spans created by apps on OpenTelemetry JS 3 after calling register(). Following the OTel upgrade, register() returns the @opentelemetry/sdk-trace TracerProvider (exported as the NodeTracerProvider type), which no longer exposes a register() method. Custom spanProcessors must now originate from @opentelemetry/sdk-trace and accept an options object (BatchSpanProcessor and SimpleSpanProcessor are also re-exported). Additionally, any tracerProvider passed to @arizeai/phoenix-client evaluateExperiment() must be an @opentelemetry/sdk-trace 3.x TracerProvider. Furthermore, register() no longer respects OTEL TRACES SAMPLER, OTEL SPAN, OTEL ATTRIBUTE, or OTEL BSP environment variables, and the minimum required runtime is now Node.js 22.15.
可执行摘要
@arizeai/phoenix-otel v3.0.0 migrates to OpenTelemetry JS 3 (@opentelemetry/sdk-trace 3.x, @opentelemetry/api 1.10). Key breaking changes include: Node.js =22.15 requirement, register() returning a TracerProvider without its own register() method, removal of automatic application of OTEL TRACES , OTEL SPAN , OTEL ATTRIBUTE , and OTEL BSP environment variables in register(), and updated span processor instantiations.
- Agent 实用度
- 94/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Upgrade runtime environment to Node.js 22.15 or newer.
- Update spanProcessor instantiations to pass an options object (e.g., new BatchSpanProcessor({ exporter })) using imports from @opentelemetry/sdk-trace or @arizeai/phoenix-otel re-exports.
- Refactor code relying on a register() method on the TracerProvider returned by register().
- Manually configure sampling, span, attribute, or BSP settings previously handled via OTEL environment variables in register().