View source: R/telemetry_otel_conversion.R
| extract_output_id_from_span | R Documentation |
Extracts output identifier from OTLP span. Looks in span name (e.g., "output:plot1") and span attributes (e.g., output_id attribute).
extract_output_id_from_span(span_name, span_attributes)
span_name |
Character span name |
span_attributes |
List or data frame of span attributes |
Character output ID, or NA if not found
## Not run:
# extract from span name
extract_output_id_from_span("output:plot1", NULL) # returns "plot1"
# extract from attributes
attrs <- list(list(key = "output_id", value = list(stringValue = "table1")))
extract_output_id_from_span("output", attrs) # returns "table1"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.