View source: R/telemetry_ingest.R
| detect_otel_json | R Documentation |
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)
source_path |
Path to JSON file |
Logical TRUE if OTLP format detected, FALSE otherwise
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.