Skip to content

Commit 376c23c

Browse files
Remove unused internal member, shows that Config.DefaultHistogramBoundaries is unused (#2765)
Signed-off-by: Bogdan Drutu <[email protected]> Co-authored-by: Chester Cheung <[email protected]>
1 parent 4bbf8d6 commit 376c23c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

exporters/prometheus/prometheus.go

+4-7
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ type Exporter struct {
5353
// controllers (e.g., with different resources).
5454
lock sync.RWMutex
5555
controller *controller.Controller
56-
57-
defaultHistogramBoundaries []float64
5856
}
5957

6058
// ErrUnsupportedAggregator is returned for unrepresentable aggregator
@@ -104,11 +102,10 @@ func New(config Config, controller *controller.Controller) (*Exporter, error) {
104102
}
105103

106104
e := &Exporter{
107-
handler: promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{}),
108-
registerer: config.Registerer,
109-
gatherer: config.Gatherer,
110-
controller: controller,
111-
defaultHistogramBoundaries: config.DefaultHistogramBoundaries,
105+
handler: promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{}),
106+
registerer: config.Registerer,
107+
gatherer: config.Gatherer,
108+
controller: controller,
112109
}
113110

114111
c := &collector{

0 commit comments

Comments
 (0)