def get_turn_context(self, turn_number: int) -> Optional["SpanContext"]:
        """Get the span context for a specific turn.

        This can be used by services to create child spans.
        """
        if not is_tracing_available():
            return None

        return self._trace_context_map.get(turn_number)
Get the span context for a specific turn.

        This can be used by services to create child spans.
        
src/pipecat/utils/tracing/turn_trace_observer.py