From 3ceb7f9a29ec7912cd780c29c891a1c8f0bf16a8 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 3c374044ae0..daee093c9ff 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;