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
26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
import { Context } from '@opentelemetry/api';
|
|
import { Span } from '../Span';
|
|
import { SpanProcessor } from '../SpanProcessor';
|
|
import { ReadableSpan } from './ReadableSpan';
|
|
import { SpanExporter } from './SpanExporter';
|
|
/**
|
|
* An implementation of the {@link SpanProcessor} that converts the {@link Span}
|
|
* to {@link ReadableSpan} and passes it to the configured exporter.
|
|
*
|
|
* Only spans that are sampled are converted.
|
|
*
|
|
* NOTE: This {@link SpanProcessor} exports every ended span individually instead of batching spans together, which causes significant performance overhead with most exporters. For production use, please consider using the {@link BatchSpanProcessor} instead.
|
|
*/
|
|
export declare class SimpleSpanProcessor implements SpanProcessor {
|
|
private readonly _exporter;
|
|
private _shutdownOnce;
|
|
private _pendingExports;
|
|
constructor(exporter: SpanExporter);
|
|
forceFlush(): Promise<void>;
|
|
onStart(_span: Span, _parentContext: Context): void;
|
|
onEnd(span: ReadableSpan): void;
|
|
private _doExport;
|
|
shutdown(): Promise<void>;
|
|
private _shutdown;
|
|
}
|
|
//# sourceMappingURL=SimpleSpanProcessor.d.ts.map |