Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
fix: remove wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
czy88840616 committed Oct 23, 2018
1 parent bda063f commit 30a50a1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/hook/src/patch/HttpServer.ts
Original file line number Diff line number Diff line change
@@ -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');

Expand Down Expand Up @@ -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)) {
Expand Down

0 comments on commit 30a50a1

Please sign in to comment.