We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b1f2c0 commit d8c624aCopy full SHA for d8c624a
langfuse/_client/client.py
@@ -1664,7 +1664,7 @@ def update_current_trace(
1664
1665
current_otel_span = self._get_current_otel_span()
1666
1667
- if current_otel_span is not None:
+ if current_otel_span is not None and current_otel_span.is_recording():
1668
existing_observation_type = current_otel_span.attributes.get( # type: ignore[attr-defined]
1669
LangfuseOtelSpanAttributes.OBSERVATION_TYPE, "span"
1670
)
0 commit comments