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

Commit

Permalink
Change default timeout to match ingestion (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
punya committed Apr 14, 2021
1 parent 874b309 commit f81d98c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stackdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ type Options struct {
// or the unit is not important.
SkipCMD bool

// Timeout for all API calls. If not set, defaults to 5 seconds.
// Timeout for all API calls. If not set, defaults to 12 seconds.
Timeout time.Duration

// ReportingInterval sets the interval between reporting metrics.
Expand Down Expand Up @@ -287,7 +287,7 @@ type Options struct {
UserAgent string
}

const defaultTimeout = 5 * time.Second
const defaultTimeout = 12 * time.Second

var defaultDomain = path.Join("custom.googleapis.com", "opencensus")

Expand Down

0 comments on commit f81d98c

Please sign in to comment.