Skip to main content
def get_traceparent() -> Optional[str]:

source code

Get the current traceparent header value, if an OTel span is active. Returns: The traceparent header string, or None if no active span.