Learn R Programming

bidux (version 0.4.0)

read_otel_json: Read OpenTelemetry JSON (OTLP) file

Description

Reads OpenTelemetry Protocol (OTLP) JSON files containing span data from Shiny 1.12+ applications. Extracts spans from the nested OTLP structure and converts them to bidux event schema.

Usage

read_otel_json(path)

Value

Data frame with bidux event schema (converted from spans)

Arguments

path

Path to OTLP JSON file

Examples

Run this code
if (FALSE) {
events <- read_otel_json("otel_spans.json")
names(events)
# [1] "timestamp" "session_id" "event_type" "input_id" "value" "error_message"
# [7] "output_id" "navigation_id"
}

Run the code above in your browser using DataLab