Merge pull request #1847 from pipecat-ai/mb/update-otel
Keep span identifiers in attributes only
This commit is contained in:
@@ -82,7 +82,7 @@ class TurnTraceObserver(BaseObserver):
|
|||||||
self._conversation_id = conversation_id
|
self._conversation_id = conversation_id
|
||||||
|
|
||||||
# Create a new span for this conversation
|
# 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
|
# Set span attributes
|
||||||
self._conversation_span.set_attribute("conversation.id", conversation_id)
|
self._conversation_span.set_attribute("conversation.id", conversation_id)
|
||||||
@@ -143,7 +143,7 @@ class TurnTraceObserver(BaseObserver):
|
|||||||
parent_context = context_provider.get_current_conversation_context()
|
parent_context = context_provider.get_current_conversation_context()
|
||||||
|
|
||||||
# Create a new span for this turn
|
# 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
|
self._current_turn_number = turn_number
|
||||||
|
|
||||||
# Set span attributes
|
# Set span attributes
|
||||||
|
|||||||
Reference in New Issue
Block a user