This is implementation of SpanExporter that prints spans to the console. This class can be used for diagnostic purposes.

NOTE: This SpanExporter is intended for diagnostics use only, output rendered to the console may change at any time.

Implements

Constructors

Properties

_exportInfo: any

converts span info into more readable format

Param: span

_sendSpans: any

Showing spans in console

Param: spans

Param: done

Methods

  • Export spans.

    Parameters

    • spans: ReadableSpan[]
    • resultCallback: ((result) => void)
        • (result): void
        • Parameters

          • result: ExportResult

          Returns void

    Returns void

  • Exports any pending spans in exporter

    Returns Promise<void>

  • Shutdown the exporter.

    Returns Promise<void>