From 30a50a109e9688b32fa681f7ca2affb058fb540e Mon Sep 17 00:00:00 2001 From: Harry Chen Date: Tue, 23 Oct 2018 15:28:56 +0800 Subject: [PATCH] fix: remove wrong import --- packages/hook/src/patch/HttpServer.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/hook/src/patch/HttpServer.ts b/packages/hook/src/patch/HttpServer.ts index bd3312d1..934a5294 100644 --- a/packages/hook/src/patch/HttpServer.ts +++ b/packages/hook/src/patch/HttpServer.ts @@ -1,13 +1,10 @@ -'use strict'; - import { getRandom64, MetricLevel, MetricName, MetricsClientUtil, Patcher } from 'pandora-metrics'; -import { extractPath } from '../utils/Utils'; +import { extractPath } from '..'; import { HEADER_TRACE_ID } from '../utils/Constants'; import { parse as parseUrl } from 'url'; import { parse as parseQS, ParsedUrlQuery } from 'querystring'; import * as http from 'http'; import { IncomingMessage } from 'http'; -import parseInt = require('lodash/fp/parseInt'); const debug = require('debug')('Pandora:Hook:HttpServerPatcher'); @@ -267,9 +264,7 @@ export class HttpServerPatcher extends Patcher { } let global = new MetricName(MetricsStat.HTTP_REQUEST, {}, MetricLevel.NORMAL); - let client = MetricsClientUtil.getMetricsClient(); - let globalCompass = client.getFastCompass(MetricsStat.HTTP_GROUP, global); if (MetricsStat.HTTP_ERROR_CODE > parseInt(responseCode)) {