Skip to content

Commit

Permalink
chore: fixing descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
obecny committed Dec 10, 2020
1 parent 1739685 commit 33329e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions packages/opentelemetry-host-metrics/src/BaseMetrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ const DEFAULT_METRIC_NAME_SEPARATOR = '.';
const DEFAULT_KEY = 'name';

/**
* Metrics Collector - collects metrics for CPU, Memory, Heap, Network, Event
* Loop, Garbage Collector, Heap Space
* the default label name for metric name is "name"
* Base Class for metrics
*/
export abstract class BaseMetrics {
protected _logger: api.Logger | undefined;
Expand Down
8 changes: 2 additions & 6 deletions packages/opentelemetry-host-metrics/src/metric.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ import { getCpuUsageData, getMemoryData } from './stats/common';
import { getNetworkData } from './stats/si';
import { CpuUsageData, MemoryData, NetworkData } from './types';

// import * as types from './types';

/**
* Metrics Collector - collects metrics for CPU, Memory, Heap, Network, Event
* Loop, Garbage Collector, Heap Space
* the default label name for metric name is "name"
* Metrics Collector - collects metrics for CPU, Memory, Network
*/
export class HostMetrics extends BaseMetrics {
private _cpuTimeObserver!: api.SumObserver;
Expand Down Expand Up @@ -244,7 +240,7 @@ export class HostMetrics extends BaseMetrics {
}

/**
* Starts collecting stats
* Starts collecting metrics
*/
start() {
// initial collection
Expand Down

0 comments on commit 33329e1

Please sign in to comment.