Applies to:
- Plan - Any
- Deployment - Any
- Use case - Remote evals where UI-selected Python scorers' child LLM spans do not appear under the scorer span
Summary
UI-selected Python remote-eval scorers can run with an emptyparent span so child LLM spans do not appear under the scorer span. The devserver used state.current_span.get().export() while the active span was a noop, causing an empty parent. Upgrade to the Python SDK v0.51.0 or later to get the permanent fix.
What is happening
When Braintrust invokes a hosted Python scorer for a remote eval, the invocation request can include an emptyparent field. The devserver set parent from state.current_span.get().export(). The active scorer span was held by the context manager instead, so the exported value was empty. The scorer and any child LLM spans were recorded but did not attach under the experiment row. This only affects invocations that receive an empty parent value.
Fix or suggestion
Upgrade the Python SDK (required)
- Upgrade your Python SDK to v0.51.0 or later. For example:
- Restart any local dev servers or processes that host your remote-eval devserver.
- Re-run the playground or experiment row.
parent span.
How to confirm it worked
- Re-run the playground or experiment row that exercises the scorer. Let the run finish. Reload the trace in the UI.
- Verify the scorer span appears under the experiment row and that the child LLM spans are nested below the scorer span.
Notes
- The permanent fix shipped in the Python SDK release v0.51.0.
- If you previously applied a local monkeypatch workaround for v0.50.0, remove it after upgrading.