You've already forked opentelemetry-go
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:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user