From d749fb50459ff4bbb9ffb5ea44313acae67ee117 Mon Sep 17 00:00:00 2001 From: Hiroaki Goto <1642211+StoneDot@users.noreply.github.com> Date: Wed, 28 Aug 2019 07:13:32 +0900 Subject: [PATCH] Fix circular import --- packages/opencensus-instrumentation-http2/src/http2.ts | 1 + packages/opencensus-instrumentation-https/src/https.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/opencensus-instrumentation-http2/src/http2.ts b/packages/opencensus-instrumentation-http2/src/http2.ts index 539214457..b4a886984 100644 --- a/packages/opencensus-instrumentation-http2/src/http2.ts +++ b/packages/opencensus-instrumentation-http2/src/http2.ts @@ -23,6 +23,7 @@ import { SpanKind, TraceOptions, } from '@opencensus/core'; +import 'http'; import { HttpPlugin } from '@opencensus/instrumentation-http'; import * as http2 from 'http2'; import * as shimmer from 'shimmer'; diff --git a/packages/opencensus-instrumentation-https/src/https.ts b/packages/opencensus-instrumentation-https/src/https.ts index fb6b775fd..63450245c 100644 --- a/packages/opencensus-instrumentation-https/src/https.ts +++ b/packages/opencensus-instrumentation-https/src/https.ts @@ -15,6 +15,7 @@ */ import { Func } from '@opencensus/core'; +import 'http'; import { HttpPlugin } from '@opencensus/instrumentation-http'; import * as http from 'http'; import * as https from 'https';