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
25 lines
910 B
Plaintext
25 lines
910 B
Plaintext
import { SpanExporter } from './SpanExporter';
|
|
import { ReadableSpan } from './ReadableSpan';
|
|
import { ExportResult } from '@opentelemetry/core';
|
|
/**
|
|
* This class can be used for testing purposes. It stores the exported spans
|
|
* in a list in memory that can be retrieved using the `getFinishedSpans()`
|
|
* method.
|
|
*/
|
|
export declare class InMemorySpanExporter implements SpanExporter {
|
|
private _finishedSpans;
|
|
/**
|
|
* Indicates if the exporter has been "shutdown."
|
|
* When false, exported spans will not be stored in-memory.
|
|
*/
|
|
protected _stopped: boolean;
|
|
export(spans: ReadableSpan[], resultCallback: (result: ExportResult) => void): void;
|
|
shutdown(): Promise<void>;
|
|
/**
|
|
* Exports any pending spans in the exporter
|
|
*/
|
|
forceFlush(): Promise<void>;
|
|
reset(): void;
|
|
getFinishedSpans(): ReadableSpan[];
|
|
}
|
|
//# sourceMappingURL=InMemorySpanExporter.d.ts.map |