1 | import { SpanExporter } from './SpanExporter';
|
2 | import { ReadableSpan } from './ReadableSpan';
|
3 | import { 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 | */
|
8 | export 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 |