Skip to content

Commit 365bf4c

Browse files
authored
fix: fix tests (#1389)
1 parent 7e9cde2 commit 365bf4c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

langfuse/_client/span.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ def _set_otel_span_status_if_error(
559559
if level == "ERROR" and self._otel_span.is_recording():
560560
try:
561561
self._otel_span.set_status(
562-
status=Status(StatusCode.ERROR),
563-
description=status_message
562+
Status(StatusCode.ERROR, description=status_message)
564563
)
565564
except Exception:
566565
# Silently ignore any errors when setting OTEL status to avoid existing flow disruptions

0 commit comments

Comments
 (0)