Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Remove the use of deprecated api view.RegisterExporter in example. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
rghetia committed Dec 18, 2019
1 parent eec7984 commit 6151c48
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions example/main.go
Expand Up @@ -42,7 +42,6 @@ func main() {
if err != nil {
log.Fatal(err)
}
view.RegisterExporter(exporter)

// Create view to see the number of processed videos cumulatively.
// Create view to see the amount of video processed
Expand All @@ -65,9 +64,6 @@ func main() {
log.Fatalf("Cannot register the view: %v", err)
}

// Set reporting period to report data at every second.
view.SetReportingPeriod(1 * time.Second)

// Record some data points...
go func() {
for {
Expand Down

0 comments on commit 6151c48

Please sign in to comment.