Skip to content

Commit

Permalink
Remove unused internal member, shows that Config.DefaultHistogramBoun…
Browse files Browse the repository at this point in the history
…daries is unused (#2765)

Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
  • Loading branch information
bogdandrutu and hanyuancheung authored Apr 7, 2022
1 parent 4bbf8d6 commit 376c23c
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions exporters/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ type Exporter struct {
// controllers (e.g., with different resources).
lock sync.RWMutex
controller *controller.Controller

defaultHistogramBoundaries []float64
}

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

e := &Exporter{
handler: promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{}),
registerer: config.Registerer,
gatherer: config.Gatherer,
controller: controller,
defaultHistogramBoundaries: config.DefaultHistogramBoundaries,
handler: promhttp.HandlerFor(config.Gatherer, promhttp.HandlerOpts{}),
registerer: config.Registerer,
gatherer: config.Gatherer,
controller: controller,
}

c := &collector{
Expand Down

0 comments on commit 376c23c

Please sign in to comment.