@arizeai/phoenix-otel@3.1.0
Arize Phoenix released @arizeai/phoenix-otel@3.1.0 , adding sampler and spanLimits options to register() , warning on ignored OpenTelemetry JS 3 environment variables, and throwing a TypeError when span processors receive an exporter positionally.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
In release 3.1.0 of @arizeai/phoenix-otel , register() now accepts sampler and spanLimits parameters, and AlwaysOnSampler , AlwaysOffSampler , ParentBasedSampler , and TraceIdRatioBasedSampler are re-exported. Because OpenTelemetry JS 3 ignores them, warnings are now logged if environment variables such as OTEL TRACES SAMPLER , OTEL TRACES SAMPLER ARG , OTEL SPAN , OTEL ATTRIBUTE , or OTEL BSP are set without matching in-code configuration. Additionally, the re-exported BatchSpanProcessor and SimpleSpanProcessor now throw a TypeError if an exporter is passed positionally rather than within an options object ( { exporter } ), preventing spans from being silently dropped.
可执行摘要
@arizeai/phoenix-otel@3.1.0 updates register() to accept sampler and spanLimits configurations, re-exports standard samplers, logs warnings for ignored OTEL environment variables under OpenTelemetry JS 3, and modifies BatchSpanProcessor and SimpleSpanProcessor to throw a TypeError instead of silently dropping spans when exporters are passed positionally.
- Agent 实用度
- 72/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Ensure exporter arguments to BatchSpanProcessor and SimpleSpanProcessor are passed as an options object ({ exporter }) to avoid a TypeError.
- Verify that tracing configurations previously set through OTEL TRACES SAMPLER, OTEL SPAN, OTEL ATTRIBUTE, or OTEL BSP environment variables are explicitly passed in code via register() or custom processors.