powered by
Checks if a JSON file contains OpenTelemetry Protocol span data by looking for the characteristic OTLP structure (resourceSpans, scopeSpans, spans).
detect_otel_json(source_path)
Logical TRUE if OTLP format detected, FALSE otherwise
Path to JSON file
if (FALSE) { detect_otel_json("spans.json") # returns TRUE for otlp files detect_otel_json("telemetry.json") # returns FALSE for shiny.telemetry files }
Run the code above in your browser using DataLab