1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2024-12-04 09:43:23 +02:00

Remove unused internal member, shows that Config.DefaultHistogramBoundaries is unused (#2765)

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

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
This commit is contained in:
Bogdan Drutu 2022-04-07 11:40:43 -07:00 committed by GitHub
parent 4bbf8d6bcf
commit 376c23c251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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{