Skip to content

Commit

Permalink
Use nil slice for popts better to permit nil?
Browse files Browse the repository at this point in the history
  • Loading branch information
DazWilkin committed Sep 11, 2020
1 parent 0fee3ad commit 7e67ff1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions exporter/metric/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,7 @@ projectID := os.Getenv("GOOGLE_CLOUD_PROJECT")
opts := []mexporter.Option{
mexporter.WithProjectID(projectID),
}
popts:= []push.Option{
push.WithResource(
resource.New(
label.String("author", "google"),
label.String("application", "example"),
),
),
}
popts:= []push.Option{}

// Create exporter (collector embedded with the exporter).
pusher, err := mexporter.InstallNewPipeline(opts, popts)
Expand Down

0 comments on commit 7e67ff1

Please sign in to comment.