From 1cfd08ca8b7c289e157b623b04fe31ae6397b91f Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Wed, 13 Jan 2021 11:09:38 -0500 Subject: [PATCH] chore: change SpanOptions startTime to TimeInput --- packages/opentelemetry-api/src/trace/SpanOptions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/opentelemetry-api/src/trace/SpanOptions.ts b/packages/opentelemetry-api/src/trace/SpanOptions.ts index 3c374044ae0..daee093c9ff 100644 --- a/packages/opentelemetry-api/src/trace/SpanOptions.ts +++ b/packages/opentelemetry-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;