In-memory OpenTelemetry SpanExporter: converts every exported span into the query model (Span) and keeps it. Use with initTracingWith(config, () => exporter).
SpanExporter
initTracingWith(config, () => exporter)
Readonly
Spans exported so far.
Converts the spans to the query model and stores them (or fails as scripted).
Makes the next times export calls fail.
times
Immediately export all spans
Forgets every stored span.
Stops the exporter.
In-memory OpenTelemetry
SpanExporter: converts every exported span into the query model (Span) and keeps it. Use withinitTracingWith(config, () => exporter).