View source: R/telemetry_otel_conversion.R
| extract_session_id_from_span | R Documentation |
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)
span_attributes |
List or data frame of span attributes |
Character session ID, or NA if not found
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.