From a825c9318e1a2309d821f8dc8993a03e67dd39ac Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Wed, 13 Jan 2021 17:38:05 -0500 Subject: [PATCH] chore: change SpanOptions startTime to TimeInput (#1815) --- api/src/trace/SpanOptions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/trace/SpanOptions.ts b/api/src/trace/SpanOptions.ts index 3c374044ae..daee093c9f 100644 --- a/api/src/trace/SpanOptions.ts +++ b/api/src/trace/SpanOptions.ts @@ -14,6 +14,7 @@ * limitations under the License. */ +import { TimeInput } from '../common/Time'; import { Attributes } from './attributes'; import { Link } from './link'; import { SpanKind } from './span_kind'; @@ -35,7 +36,7 @@ export interface SpanOptions { links?: Link[]; /** A manually specified start time for the created `Span` object. */ - startTime?: number; + startTime?: TimeInput; /** The new span should be a root span. (Ignore parent from context). */ root?: boolean;