1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-11-29 23:07:45 +02:00

Add configurable push frequency for exporters (#504)

* Add configurable push frequency for exporters

* Standardize on minute push frequency
This commit is contained in:
Rebecca Pruim
2020-02-28 17:08:30 -08:00
committed by GitHub
parent ca3f74d976
commit 7a0e1c8eda
6 changed files with 15 additions and 12 deletions

View File

@@ -17,6 +17,7 @@ package metric_test
import (
"context"
"fmt"
"time"
"go.opentelemetry.io/otel/api/key"
"go.opentelemetry.io/otel/api/metric"
@@ -27,7 +28,7 @@ func ExampleNew() {
pusher, err := stdout.NewExportPipeline(stdout.Config{
PrettyPrint: true,
DoNotPrintTime: true, // This makes the output deterministic
})
}, time.Minute)
if err != nil {
panic(fmt.Sprintln("Could not initialize stdout exporter:", err))
}