Commit fad23ee 1 parent 8dbc7cd commit fad23ee Copy full SHA for fad23ee
File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ import (
18
18
"go.opentelemetry.io/otel/sdk/metric/internal/aggregate"
19
19
)
20
20
21
- var (
22
- zeroInstrumentKind InstrumentKind
23
- zeroScope instrumentation.Scope
24
- )
21
+ var zeroScope instrumentation.Scope
25
22
26
23
// InstrumentKind is the identifier of a group of instruments that all
27
24
// performing the same function.
@@ -81,7 +78,7 @@ type Instrument struct {
81
78
func (i Instrument ) IsEmpty () bool {
82
79
return i .Name == "" &&
83
80
i .Description == "" &&
84
- i .Kind == zeroInstrumentKind &&
81
+ i .Kind == instrumentKindUndefined &&
85
82
i .Unit == "" &&
86
83
i .Scope == zeroScope
87
84
}
@@ -112,7 +109,7 @@ func (i Instrument) matchesDescription(other Instrument) bool {
112
109
// matchesKind returns true if the Kind of i is its zero-value or it equals the
113
110
// Kind of other, otherwise false.
114
111
func (i Instrument ) matchesKind (other Instrument ) bool {
115
- return i .Kind == zeroInstrumentKind || i .Kind == other .Kind
112
+ return i .Kind == instrumentKindUndefined || i .Kind == other .Kind
116
113
}
117
114
118
115
// matchesUnit returns true if the Unit of i is its zero-value or it equals the
You can’t perform that action at this time.
0 commit comments