Skip to content

Commit 8070fd0

Browse files
committed
fix
1 parent c7c9ad4 commit 8070fd0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

langfuse/otel/_span.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,12 @@ def __init__(
9898
data=metadata, field="metadata", span=self._otel_span
9999
)
100100

101-
attributes = {
102-
LangfuseSpanAttributes.OBSERVATION_INPUT: media_processed_input,
103-
LangfuseSpanAttributes.OBSERVATION_OUTPUT: media_processed_output,
104-
LangfuseSpanAttributes.OBSERVATION_METADATA: media_processed_metadata,
105-
}
101+
attributes = create_span_attributes(
102+
input=media_processed_input,
103+
output=media_processed_output,
104+
metadata=media_processed_metadata,
105+
)
106+
attributes.pop(LangfuseSpanAttributes.OBSERVATION_TYPE)
106107

107108
self._otel_span.set_attributes(
108109
{k: v for k, v in attributes.items() if v is not None}

0 commit comments

Comments
 (0)