@@ -562,9 +562,7 @@ def update_current_trace(**kwargs) -> None:
562
562
563
563
def update_current_span (
564
564
attributes : Optional [Dict [str , Any ]] = None ,
565
- metadata : Optional [Dict [str , Any ]] = None ,
566
- test_case : Optional ['traces.LLMTestCase' ] = None ,
567
- feedback : Optional ['traces.Feedback' ] = None ,
565
+ metadata : Optional [Dict [str , Any ]] = None
568
566
) -> None :
569
567
"""Updates the current step (span) with the provided attributes.
570
568
@@ -574,16 +572,14 @@ def update_current_span(
574
572
Args:
575
573
attributes: Optional dictionary of attributes to set on the step
576
574
metadata: Optional dictionary of metadata to merge with existing metadata
577
- test_case: Optional LLM test case data
578
- feedback: Optional feedback data
579
575
580
576
Example:
581
- >>> import openlayer
577
+ >>> from openlayer.lib import trace, update_current_span
582
578
>>>
583
- >>> @openlayer. trace()
579
+ >>> @trace()
584
580
>>> def my_function():
585
581
>>> # Update current step with additional context
586
- >>> openlayer. update_current_span(
582
+ >>> update_current_span(
587
583
>>> metadata={"model_version": "v1.2.3"}
588
584
>>> )
589
585
>>> return "result"
@@ -605,12 +601,6 @@ def update_current_span(
605
601
existing_metadata .update (metadata )
606
602
update_data ["metadata" ] = existing_metadata
607
603
608
- if test_case is not None :
609
- update_data ["test_case" ] = test_case
610
-
611
- if feedback is not None :
612
- update_data ["feedback" ] = feedback
613
-
614
604
# Handle generic attributes by setting them directly on the step
615
605
if attributes is not None :
616
606
for key , value in attributes .items ():
0 commit comments