Skip to content

Commit 2937544

Browse files
authored
Add expected output to logfire attributes for the evals task span (#1334)
1 parent ebd86fa commit 2937544

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydantic_evals/pydantic_evals/dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,11 +871,12 @@ async def _run_task_and_evaluators(
871871
A ReportCase containing the evaluation results.
872872
"""
873873
with _logfire.span(
874-
'{task_name}: {case_name}',
874+
'case: {case_name}',
875875
task_name=get_unwrapped_function_name(task),
876876
case_name=case.name,
877877
inputs=case.inputs,
878878
metadata=case.metadata,
879+
expected_output=case.expected_output,
879880
) as case_span:
880881
t0 = time.time()
881882
scoring_context = await _run_task(task, case)

0 commit comments

Comments
 (0)