Skip to content

basalt / core/src / InMemorySpanExporter

Class: InMemorySpanExporter ​

Defined in: core/src/tracing.ts:54

Collects spans in memory — for tests and debugging.

Implements ​

Constructors ​

Constructor ​

> new InMemorySpanExporter(): InMemorySpanExporter

Returns ​

InMemorySpanExporter

Properties ​

spans ​

> readonly spans: FinishedSpan[] = []

Defined in: core/src/tracing.ts:55

Methods ​

export() ​

> export(spans): void

Defined in: core/src/tracing.ts:56

Parameters ​

spans ​

FinishedSpan[]

Returns ​

void

Implementation of ​

SpanExporter.export

Released under the MIT License.