Keep span identifiers in attributes only

This commit is contained in:
Mark Backman
2025-05-19 12:25:13 -04:00
parent 2b66eddaa1
commit 9bc3df7803

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