otel/export-otlp folds spans → OTLP/JSON envelope (resourceSpans → scopeSpans → spans) with hex traceId(32)/spanId(16)/parentSpanId, uint64-as-string nano timestamps, typed attributes (stringValue/intValue), and span kind (SERVER/INTERNAL). otel/export-otlp-json encodes via dream-json-encode; otel/post-otlp POSTs through an injected transport (testable without a live collector).
17 KiB
17 KiB