Skip to content
Judgment Labs
Esc
navigateopen⌘Jpreview
On this page

NoOpSpanExporter

A no-op span exporter that discards all spans.

Used when monitoring is disabled or credentials are missing.

export()

Export a batch of spans.

function export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void

Parameters

PropType
spansReadableSpan[]

The spans to export.

TypeReadableSpan[]
resultCallback(result: ExportResult) => void

Callback invoked with the export result.

Type(result: ExportResult) => void

Returns

void


shutdown()

Shut down the exporter.

async function shutdown(): Promise<void>

Returns

Promise<void>


forceFlush()

Flush any pending exports.

async function forceFlush(): Promise<void>

Returns

Promise<void>

Was this page helpful?