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
21 lines
751 B
Plaintext
21 lines
751 B
Plaintext
import { ExportResult } from '@opentelemetry/core';
|
|
import { ReadableSpan } from './ReadableSpan';
|
|
/**
|
|
* An interface that allows different tracing services to export recorded data
|
|
* for sampled spans in their own format.
|
|
*
|
|
* To export data this MUST be register to the Tracer SDK using a optional
|
|
* config.
|
|
*/
|
|
export interface SpanExporter {
|
|
/**
|
|
* Called to export sampled {@link ReadableSpan}s.
|
|
* @param spans the list of sampled Spans to be exported.
|
|
*/
|
|
export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
|
|
/** Stops the exporter. */
|
|
shutdown(): Promise<void>;
|
|
/** Immediately export all spans */
|
|
forceFlush?(): Promise<void>;
|
|
}
|
|
//# sourceMappingURL=SpanExporter.d.ts.map |