def get_current_turn_context(self) -> Optional["SpanContext"]:
        """Get the span context for the current turn.

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

        return self._current_span.get_span_context()
Get the span context for the current turn.

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