Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
import { SpanExporter } from './SpanExporter';
|
|
import { ReadableSpan } from './ReadableSpan';
|
|
import { ExportResult } from '@opentelemetry/core';
|
|
/**
|
|
* This is implementation of {@link SpanExporter} that prints spans to the
|
|
* console. This class can be used for diagnostic purposes.
|
|
*
|
|
* NOTE: This {@link SpanExporter} is intended for diagnostics use only, output rendered to the console may change at any time.
|
|
*/
|
|
export declare class ConsoleSpanExporter implements SpanExporter {
|
|
/**
|
|
* Export spans.
|
|
* @param spans
|
|
* @param resultCallback
|
|
*/
|
|
export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
|
|
/**
|
|
* Shutdown the exporter.
|
|
*/
|
|
shutdown(): Promise<void>;
|
|
/**
|
|
* Exports any pending spans in exporter
|
|
*/
|
|
forceFlush(): Promise<void>;
|
|
/**
|
|
* converts span info into more readable format
|
|
* @param span
|
|
*/
|
|
private _exportInfo;
|
|
/**
|
|
* Showing spans in console
|
|
* @param spans
|
|
* @param done
|
|
*/
|
|
private _sendSpans;
|
|
}
|
|
//# sourceMappingURL=ConsoleSpanExporter.d.ts.map |