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:
parent
ea67a56427
commit
d85178b63b
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user