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

Commit f24e562

Browse files
authored
Fix typos and imports. (#1139)
* Fix a typo: Lable -> Label. * Fix import order.
1 parent 17d7955 commit f24e562

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

metric/metricexport/reader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
package metricexport
1717

1818
import (
19+
"context"
1920
"fmt"
21+
"sync"
2022
"time"
2123

22-
"context"
2324
"go.opencensus.io/metric/metricdata"
2425
"go.opencensus.io/metric/metricproducer"
2526
"go.opencensus.io/trace"
26-
"sync"
2727
)
2828

2929
var (

stats/view/view_to_metric.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func getType(v *View) metricdata.Type {
7373
}
7474
}
7575

76-
func getLableKeys(v *View) []metricdata.LabelKey {
76+
func getLabelKeys(v *View) []metricdata.LabelKey {
7777
labelKeys := []metricdata.LabelKey{}
7878
for _, k := range v.TagKeys {
7979
labelKeys = append(labelKeys, metricdata.LabelKey{Key: k.Name()})
@@ -87,7 +87,7 @@ func viewToMetricDescriptor(v *View) *metricdata.Descriptor {
8787
Description: v.Description,
8888
Unit: getUnit(v.Measure.Unit()),
8989
Type: getType(v),
90-
LabelKeys: getLableKeys(v),
90+
LabelKeys: getLabelKeys(v),
9191
}
9292
}
9393

stats/view/view_to_metric_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"time"
2222

2323
"encoding/json"
24+
2425
"github.com/google/go-cmp/cmp"
2526
"go.opencensus.io/metric/metricdata"
2627
"go.opencensus.io/stats"

0 commit comments

Comments
 (0)