powered by
Extracts the session.id attribute from OTLP span attributes list. Handles both nested list and data frame formats.
extract_session_id_from_span(span_attributes)
Character session ID, or NA if not found
List or data frame of span attributes
if (FALSE) { # from list format attrs <- list( list(key = "session.id", value = list(stringValue = "abc123")) ) extract_session_id_from_span(attrs) # returns "abc123" }
Run the code above in your browser using DataLab