Documentation
¶
Overview ¶
Package spooltest reads a spool folder back, for tests that prove what ynf wrote: the OTLP JSON lines of every file in it, parsed into spans, events, log records and metric points.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct {
Spans []Span
Logs []Log
Points []Point
// Raw is every line, as written, for checks over the whole content.
Raw string
}
Data is everything in a spool folder.
func Read ¶
Read parses every file in dir, closed or open. It fails the test on a line that is not JSON.
Click to show internal directories.
Click to hide internal directories.