Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurkale22 committed May 8, 2019
1 parent 44b556a commit 09f17ab
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions packages/opencensus-core/src/metrics/metric-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ export class MetricRegistry {
* convenient form when you want to manually increase and decrease values as
* per your service requirements.
*
* @param {string} name The name of the metric.
* @param {MetricOptions} options The options for the metric.
* @returns {Gauge} A Int64 Gauge metric.
* @param name The name of the metric.
* @param options The options for the metric.
* @returns A Int64 Gauge metric.
*/
addInt64Gauge(name: string, options?: MetricOptions): Gauge {
const description =
Expand Down Expand Up @@ -78,9 +78,9 @@ export class MetricRegistry {
* convenient form when you want to manually increase and decrease values as
* per your service requirements.
*
* @param {string} name The name of the metric.
* @param {MetricOptions} options The options for the metric.
* @returns {Gauge} A Double Gauge metric.
* @param name The name of the metric.
* @param options The options for the metric.
* @returns A Double Gauge metric.
*/
addDoubleGauge(name: string, options?: MetricOptions): Gauge {
const description =
Expand Down Expand Up @@ -109,9 +109,9 @@ export class MetricRegistry {
* convenient form when you want to manually increase and decrease values as
* per your service requirements.
*
* @param {string} name The name of the metric.
* @param {MetricOptions} options The options for the metric.
* @returns {DerivedGauge} A Int64 DerivedGauge metric.
* @param name The name of the metric.
* @param options The options for the metric.
* @returns A Int64 DerivedGauge metric.
*/
addDerivedInt64Gauge(name: string, options?: MetricOptions): DerivedGauge {
const description =
Expand Down Expand Up @@ -140,9 +140,9 @@ export class MetricRegistry {
* convenient form when you want to manually increase and decrease values as
* per your service requirements.
*
* @param {string} name The name of the metric.
* @param {MetricOptions} options The options for the metric.
* @returns {DerivedGauge} A Double DerivedGauge metric.
* @param name The name of the metric.
* @param options The options for the metric.
* @returns A Double DerivedGauge metric.
*/
addDerivedDoubleGauge(name: string, options?: MetricOptions): DerivedGauge {
const description =
Expand Down Expand Up @@ -171,9 +171,9 @@ export class MetricRegistry {
* useful when you want to manually increase and reset values as per service
* requirements.
*
* @param {string} name The name of the metric.
* @param {MetricOptions} options The options for the metric.
* @returns {Cumulative} A Int64 Cumulative metric.
* @param name The name of the metric.
* @param options The options for the metric.
* @returns A Int64 Cumulative metric.
*/
addInt64Cumulative(name: string, options?: MetricOptions): Cumulative {
const description =
Expand Down Expand Up @@ -202,9 +202,9 @@ export class MetricRegistry {
* useful when you want to manually increase and reset values as per service
* requirements.
*
* @param {string} name The name of the metric.
* @param {MetricOptions} options The options for the metric.
* @returns {Cumulative} A Double Cumulative metric.
* @param name The name of the metric.
* @param options The options for the metric.
* @returns A Double Cumulative metric.
*/
addDoubleCumulative(name: string, options?: MetricOptions): Cumulative {
const description =
Expand All @@ -231,8 +231,8 @@ export class MetricRegistry {
/**
* Registers metric to register.
*
* @param {string} name The name of the metric.
* @param {Meter} meter The metric to register.
* @param name The name of the metric.
* @param meter The metric to register.
*/
private registerMetric(name: string, meter: Meter): void {
if (this.registeredMetrics.has(name)) {
Expand All @@ -245,7 +245,7 @@ export class MetricRegistry {
/**
* Gets a metric producer for registry.
*
* @returns {MetricProducer} The metric producer.
* @returns The metric producer.
*/
getMetricProducer(): MetricProducer {
return this.metricProducer;
Expand All @@ -267,7 +267,7 @@ class MetricProducerForRegistry extends BaseMetricProducer {
/**
* Gets a collection of produced Metric`s to be exported.
*
* @returns {Metric[]} The list of metrics.
* @returns The list of metrics.
*/
getMetrics(): Metric[] {
return Array.from(this.registeredMetrics.values())
Expand Down

0 comments on commit 09f17ab

Please sign in to comment.