Skip to content
Merged
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
2 changes: 1 addition & 1 deletion langfuse/_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ def update_current_trace(

current_otel_span = self._get_current_otel_span()

if current_otel_span is not None:
if current_otel_span is not None and current_otel_span.is_recording():
existing_observation_type = current_otel_span.attributes.get( # type: ignore[attr-defined]
LangfuseOtelSpanAttributes.OBSERVATION_TYPE, "span"
)
Expand Down