@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.
Why this signal matters
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.
Actionable summary
@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 usefulness
- 72/100
- Confidence
- 96%
- Canonical data
- JSON + Markdown
What builders should check
- 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.