Applies to:
Summary
Issue: Scores submitted via the Braintrust feedback API do not appear in the UI for existing traces, and instead create new trace entries with the providedspan_id and root_span_id.
Cause: The span_id used in the API payload does not match the actual id property in the raw trace data.
Resolution: Use the correct id from the raw span data when submitting scores via the feedback API.
Resolution Steps
Step 1: Get the correct span ID
Navigate to the trace in the Braintrust UI and click the “Raw span and trace data” button to view the underlying JSON.Step 2: Identify the ID field
Locate theid property in the raw trace data JSON - this is the value you need to use in your API calls.
Step 3: Update your API payload
Use theid from the raw data as the span_id in your feedback API payload: