UNPKG

882 BTypeScriptView Raw
1import { SpanExporter } from './SpanExporter';
2import { ReadableSpan } from './ReadableSpan';
3import { ExportResult } from '@opentelemetry/core';
4/**
5 * This is implementation of {@link SpanExporter} that prints spans to the
6 * console. This class can be used for diagnostic purposes.
7 */
8export declare class ConsoleSpanExporter implements SpanExporter {
9 /**
10 * Export spans.
11 * @param spans
12 * @param resultCallback
13 */
14 export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
15 /**
16 * Shutdown the exporter.
17 */
18 shutdown(): Promise<void>;
19 /**
20 * converts span info into more readable format
21 * @param span
22 */
23 private _exportInfo;
24 /**
25 * Showing spans in console
26 * @param spans
27 * @param done
28 */
29 private _sendSpans;
30}
31//# sourceMappingURL=ConsoleSpanExporter.d.ts.map
\No newline at end of file