@otlpkit/otlpjson
v0.2.3
Published
OTLP JSON parsing and iterators for metrics, traces, and logs.
Maintainers
Readme
@otlpkit/otlpjson
OTLP JSON parsing, normalization, and typed iterators for metrics, traces, and logs.
What It Provides
- Signal detection for OTLP JSON documents (
metrics,traces,logs) - JSON/JSONL parsing helpers
- Typed record iterators and collectors
- Timestamp normalization (
unix_nanoas string) - Attribute flattening into plain JavaScript values
Quick Example
import { collectMetricPoints, parseOtlpJson } from "@otlpkit/otlpjson";
const document = parseOtlpJson(rawJsonText);
const points = collectMetricPoints(document);