1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-03-05 15:05:51 +02:00

use stateful batcher on prometheus exporter (#428)

This commit is contained in:
Gustavo Silva Paiva 2020-01-10 22:21:59 -03:00 committed by Liz Fong-Jones
parent ea67a56427
commit d85178b63b

View File

@ -150,7 +150,7 @@ func NewExportPipeline(config Config) (*push.Controller, http.HandlerFunc, error
// it could try again on the next scrape and no data would be lost, only resolution.
//
// Gauges (or LastValues) and Summaries are an exception to this and have different behaviors.
batcher := defaultkeys.New(selector, sdkmetric.NewDefaultLabelEncoder(), false)
batcher := defaultkeys.New(selector, sdkmetric.NewDefaultLabelEncoder(), true)
pusher := push.New(batcher, exporter, time.Second)
pusher.Start()