Merge pull request #1847 from pipecat-ai/mb/update-otel

Keep span identifiers in attributes only
This commit is contained in:
Mark Backman
2025-05-19 14:37:42 -04:00
committed by GitHub

View File

@@ -82,7 +82,7 @@ class TurnTraceObserver(BaseObserver):
self._conversation_id = conversation_id
# Create a new span for this conversation
self._conversation_span = self._tracer.start_span(f"conversation-{conversation_id}")
self._conversation_span = self._tracer.start_span("conversation")
# Set span attributes
self._conversation_span.set_attribute("conversation.id", conversation_id)
@@ -143,7 +143,7 @@ class TurnTraceObserver(BaseObserver):
parent_context = context_provider.get_current_conversation_context()
# Create a new span for this turn
self._current_span = self._tracer.start_span(f"turn-{turn_number}", context=parent_context)
self._current_span = self._tracer.start_span("turn", context=parent_context)
self._current_turn_number = turn_number
# Set span attributes