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

Add a timeout knob to control stackdriver exporter behavior. #999

Merged
merged 3 commits into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/observability/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,5 @@ type StackdriverConfig struct {
ReportingInterval time.Duration `env:"STACKDRIVER_REPORTING_INTERVAL, default=2m"`
BundleDelayThreshold time.Duration `env:"STACKDRIVER_BUNDLE_DELAY_THRESHOLD, default=2s"`
BundleCountThreshold uint `env:"STACKDRIVER_BUNDLE_COUNT_THRESHOLD, default=50"`
Timeout time.Duration `env:"STACKDRIVER_TIMEOUT, default=5s"`
yegle marked this conversation as resolved.
Show resolved Hide resolved
}
1 change: 1 addition & 0 deletions pkg/observability/stackdriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func NewStackdriver(ctx context.Context, config *StackdriverConfig) (Exporter, e
ProjectID: projectID,
ReportingInterval: config.ReportingInterval,
BundleDelayThreshold: config.BundleDelayThreshold,
Timeout: config.Timeout,
BundleCountThreshold: int(config.BundleCountThreshold),
MonitoredResource: monitoredResource,
DefaultMonitoringLabels: &stackdriver.Labels{},
Expand Down