Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions langfuse/_client/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def span_formatter(span: ReadableSpan) -> str:
"instrumentationScope": instrumentationScope,
},
indent=2,
ensure_ascii=False,
)
+ "\n"
)
Expand Down
1 change: 1 addition & 0 deletions langfuse/_utils/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Serializable: # type: ignore

class EventSerializer(JSONEncoder):
def __init__(self, *args: Any, **kwargs: Any) -> None:
kwargs.setdefault("ensure_ascii", False)
super().__init__(*args, **kwargs)
self.seen: set[int] = set() # Track seen objects to detect circular references

Expand Down