View source: R/telemetry_otel_conversion.R
| extract_input_id_from_span | R Documentation |
Extracts input identifier from OTLP span. Looks in span name (e.g., "reactive:input$slider1") and span attributes (e.g., input_id attribute).
extract_input_id_from_span(span_name, span_attributes)
span_name |
Character span name |
span_attributes |
List or data frame of span attributes |
Character input ID, or NA if not found
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.