Skip to content

Commit

Permalink
chore: export data every 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
nicecui committed Aug 15, 2023
1 parent 9bbdf5c commit 8d9fd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ func main() {
panic(err)
}

reader := metric.NewPeriodicReader(exporter, metric.WithInterval(time.Second*2))
reader := metric.NewPeriodicReader(exporter, metric.WithInterval(time.Second*5))

res := resource.NewWithAttributes(
semconv.SchemaURL,
semconv.ServiceName("quick-start-demo-go"),
semconv.ServiceVersion("v0.1.0"),
semconv.ServiceVersion("v0.1.1"),
)

meterProvider := metric.NewMeterProvider(
Expand Down

0 comments on commit 8d9fd11

Please sign in to comment.