This repository was archived by the owner on Jul 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1616package metricexport
1717
1818import (
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
2929var (
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments