if (FALSE) {
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"
}
Run the code above in your browser using DataLab