UNPKG

677 BTypeScriptView Raw
1import { ExportResult } from '@opentelemetry/core';
2import { ReadableSpan } from './ReadableSpan';
3/**
4 * An interface that allows different tracing services to export recorded data
5 * for sampled spans in their own format.
6 *
7 * To export data this MUST be register to the Tracer SDK using a optional
8 * config.
9 */
10export interface SpanExporter {
11 /**
12 * Called to export sampled {@link ReadableSpan}s.
13 * @param spans the list of sampled Spans to be exported.
14 */
15 export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
16 /** Stops the exporter. */
17 shutdown(): Promise<void>;
18}
19//# sourceMappingURL=SpanExporter.d.ts.map
\No newline at end of file