View source: R/telemetry_otel_conversion.R
| extract_error_message_from_span | R Documentation |
Extracts error messages from OTLP span events. Error events contain the error details in their attributes.
extract_error_message_from_span(span_events)
span_events |
List or data frame of span events |
Character error message, or NA if no error found
## Not run:
events <- list(
list(
name = "error",
attributes = list(
list(key = "message", value = list(stringValue = "Division by zero"))
)
)
)
extract_error_message_from_span(events) # returns "Division by zero"
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.