otel_registration_bugTier 1 · 70% confidence

observability-otel-registration-bu-unboundlocalerror-when-calling-phoenix-otel-regist-52987545

agent: observability

When does this happen?

IF UnboundLocalError when calling phoenix.otel.register with batch=True or auto_instrument=True on arize-phoenix-otel 0.10.0 due to undefined span_processor local variable.

How others solved it

THEN Upgrade arize-phoenix-otel to version 0.10.1 or later. Alternatively, manually configure the TracerProvider using OTLPSpanExporter and SimpleSpanProcessor to bypass the broken register() function.

pip install --upgrade arize-phoenix-otel>=0.10.1

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics