extract_session_id_from_span: Extract session ID from span attributes

View source: R/telemetry_otel_conversion.R

extract_session_id_from_spanR Documentation

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)

Arguments

span_attributes

List or data frame of span attributes

Value

Character session ID, or NA if not found

Examples

## Not run: 
# from list format
attrs <- list(
  list(key = "session.id", value = list(stringValue = "abc123"))
)
extract_session_id_from_span(attrs) # returns "abc123"

## End(Not run)

bidux documentation built on Feb. 28, 2026, 1:06 a.m.