detect_otel_json: Detect if JSON file contains OTLP (OpenTelemetry Protocol)...

View source: R/telemetry_ingest.R

detect_otel_jsonR Documentation

Detect if JSON file contains OTLP (OpenTelemetry Protocol) data

Description

Checks if a JSON file contains OpenTelemetry Protocol span data by looking for the characteristic OTLP structure (resourceSpans, scopeSpans, spans).

Usage

detect_otel_json(source_path)

Arguments

source_path

Path to JSON file

Value

Logical TRUE if OTLP format detected, FALSE otherwise

Examples

## Not run: 
detect_otel_json("spans.json") # returns TRUE for otlp files
detect_otel_json("telemetry.json") # returns FALSE for shiny.telemetry files

## End(Not run)

bidux documentation built on Feb. 28, 2026, 1:06 a.m.