extract_input_id_from_span: Extract input ID from span name or attributes

View source: R/telemetry_otel_conversion.R

extract_input_id_from_spanR Documentation

Extract input ID from span name or attributes

Description

Extracts input identifier from OTLP span. Looks in span name (e.g., "reactive:input$slider1") and span attributes (e.g., input_id attribute).

Usage

extract_input_id_from_span(span_name, span_attributes)

Arguments

span_name

Character span name

span_attributes

List or data frame of span attributes

Value

Character input ID, or NA if not found

Examples

## Not run: 
# extract from span name
extract_input_id_from_span("reactive:input$slider1", NULL) # returns "slider1"

# extract from attributes
attrs <- list(list(key = "input_id", value = list(stringValue = "text1")))
extract_input_id_from_span("reactive", attrs) # returns "text1"

## End(Not run)

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