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

Commit

Permalink
Fix typos and imports. (#1139)
Browse files Browse the repository at this point in the history
* Fix a typo: Lable -> Label.

* Fix import order.
  • Loading branch information
songy23 authored May 13, 2019
1 parent 17d7955 commit f24e562
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metric/metricexport/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
package metricexport

import (
"context"
"fmt"
"sync"
"time"

"context"
"go.opencensus.io/metric/metricdata"
"go.opencensus.io/metric/metricproducer"
"go.opencensus.io/trace"
"sync"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions stats/view/view_to_metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func getType(v *View) metricdata.Type {
}
}

func getLableKeys(v *View) []metricdata.LabelKey {
func getLabelKeys(v *View) []metricdata.LabelKey {
labelKeys := []metricdata.LabelKey{}
for _, k := range v.TagKeys {
labelKeys = append(labelKeys, metricdata.LabelKey{Key: k.Name()})
Expand All @@ -87,7 +87,7 @@ func viewToMetricDescriptor(v *View) *metricdata.Descriptor {
Description: v.Description,
Unit: getUnit(v.Measure.Unit()),
Type: getType(v),
LabelKeys: getLableKeys(v),
LabelKeys: getLabelKeys(v),
}
}

Expand Down
1 change: 1 addition & 0 deletions stats/view/view_to_metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"time"

"encoding/json"

"github.com/google/go-cmp/cmp"
"go.opencensus.io/metric/metricdata"
"go.opencensus.io/stats"
Expand Down

0 comments on commit f24e562

Please sign in to comment.