UNPKG

768 BTypeScriptView Raw
1import { Span } from '../Span';
2import { SpanProcessor } from '../SpanProcessor';
3import { ReadableSpan } from './ReadableSpan';
4import { SpanExporter } from './SpanExporter';
5/**
6 * An implementation of the {@link SpanProcessor} that converts the {@link Span}
7 * to {@link ReadableSpan} and passes it to the configured exporter.
8 *
9 * Only spans that are sampled are converted.
10 */
11export declare class SimpleSpanProcessor implements SpanProcessor {
12 private readonly _exporter;
13 constructor(_exporter: SpanExporter);
14 private _isShutdown;
15 private _shuttingDownPromise;
16 forceFlush(): Promise<void>;
17 onStart(_span: Span): void;
18 onEnd(span: ReadableSpan): void;
19 shutdown(): Promise<void>;
20}
21//# sourceMappingURL=SimpleSpanProcessor.d.ts.map
\No newline at end of file