From 3e2e0fff58e060ef4f4312a058ed3b668361e895 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Wed, 29 Jan 2020 16:30:49 -0500 Subject: [PATCH] Api separation (#727) * feat: create an api package * chore: update circle for new api package * chore: bring back getTracer * chore: add wrongly removed dev dependency * chore: review comments * chore: review comments * chore: lint * chore: export all noop implementations * chore: update API README * chore: ignore known working links that are not yet published * chore: add jsdoc for getInstance calls * chore: add jsdoc for private constructors * chore: review comments * chore: fix readme npm url * chore: fix old readmes without registry * chore: update api calling convention --- package.json | 2 +- src/JaegerHttpTraceFormat.ts | 2 +- test/JaegerHttpTraceFormat.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7d77e5a5f2e..63f02b3182e 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,6 @@ "webpack": "^4.35.2" }, "dependencies": { - "@opentelemetry/types": "^0.3.3" + "@opentelemetry/api": "^0.3.3" } } diff --git a/src/JaegerHttpTraceFormat.ts b/src/JaegerHttpTraceFormat.ts index e6d8a4740b9..bcfd9724922 100644 --- a/src/JaegerHttpTraceFormat.ts +++ b/src/JaegerHttpTraceFormat.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { SpanContext, HttpTextFormat, TraceFlags } from '@opentelemetry/types'; +import { SpanContext, HttpTextFormat, TraceFlags } from '@opentelemetry/api'; export const UBER_TRACE_ID_HEADER = 'uber-trace-id'; diff --git a/test/JaegerHttpTraceFormat.test.ts b/test/JaegerHttpTraceFormat.test.ts index 02d50f536d2..4e1ae9c9b66 100644 --- a/test/JaegerHttpTraceFormat.test.ts +++ b/test/JaegerHttpTraceFormat.test.ts @@ -19,7 +19,7 @@ import { JaegerHttpTraceFormat, UBER_TRACE_ID_HEADER, } from '../src/JaegerHttpTraceFormat'; -import { SpanContext, TraceFlags } from '@opentelemetry/types'; +import { SpanContext, TraceFlags } from '@opentelemetry/api'; describe('JaegerHttpTraceFormat', () => { const jaegerHttpTraceFormat = new JaegerHttpTraceFormat();