From 80b40620c5740f40630a6f4cb61b23f323f47e96 Mon Sep 17 00:00:00 2001 From: Mayur Kale Date: Fri, 9 Aug 2019 15:51:01 -0700 Subject: [PATCH] fix(exporter): replace span with readablespan --- .../src/export/SpanExporter.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/opentelemetry-basic-tracer/src/export/SpanExporter.ts b/packages/opentelemetry-basic-tracer/src/export/SpanExporter.ts index 837dac8c5eb..aa9baeeb750 100644 --- a/packages/opentelemetry-basic-tracer/src/export/SpanExporter.ts +++ b/packages/opentelemetry-basic-tracer/src/export/SpanExporter.ts @@ -14,8 +14,8 @@ * limitations under the License. */ -import { Span } from '../Span'; import { ExportResult } from './ExportResult'; +import { ReadableSpan } from './ReadableSpan'; /** * An interface that allows different tracing services to export recorded data @@ -26,11 +26,13 @@ import { ExportResult } from './ExportResult'; */ export interface SpanExporter { /** - * Called to export sampled {@link Span}s. + * Called to export sampled {@link ReadableSpan}s. * @param spans the list of sampled Spans to be exported. */ - // @todo: change to ReadableSpan when available (pull/150) - export(spans: Span[], resultCallback: (result: ExportResult) => void): void; + export( + spans: ReadableSpan[], + resultCallback: (result: ExportResult) => void + ): void; /** Stops the exporter. */ shutdown(): void;