Skip to content

Commit

Permalink
fix(exporter): replace span with readablespan (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 authored Aug 13, 2019
1 parent 0e76e7e commit 4bf949d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/opentelemetry-basic-tracer/src/export/SpanExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 4bf949d

Please sign in to comment.