File size: 256 Bytes
557ee65
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
from typing import Optional
from .logger import get_trace_id

def get_current_trace_id() -> Optional[str]:
    """
    Get the current trace ID from the active context.
    Provides a clean interface for trace governance.
    """
    return get_trace_id()