update_current_span

opik.opik_context.update_current_span(name: str | None = None, input: Dict[str, Any] | None = None, output: Dict[str, Any] | None = None, metadata: Dict[str, Any] | None = None, tags: List[str] | None = None, usage: UsageDict | None = None, feedback_scores: List[FeedbackScoreDict] | None = None) None

Update the current span with the provided parameters. This method is usually called within a tracked function.

Parameters:
  • name – The name of the span.

  • input – The input data of the span.

  • output – The output data of the span.

  • metadata – The metadata of the span.

  • tags – The tags of the span.

  • usage – The usage data of the span.

  • feedback_scores – The feedback scores of the span.