Learn R Programming

bidux (version 0.4.0)

extract_session_id_from_span: Extract session ID from span attributes

Description

Extracts the session.id attribute from OTLP span attributes list. Handles both nested list and data frame formats.

Usage

extract_session_id_from_span(span_attributes)

Value

Character session ID, or NA if not found

Arguments

span_attributes

List or data frame of span attributes

Examples

Run this code
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