Skip to content

Commit

Permalink
Merge 6e88c75 into backport/jjtimmons/reduce-export-freq/hardly-gener…
Browse files Browse the repository at this point in the history
…ous-martin
  • Loading branch information
hc-github-team-consul-core authored Aug 28, 2023
2 parents ada6d83 + 6e88c75 commit 6f5ab7b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions agent/hcp/telemetry/otel_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,10 @@ import (
const (
// defaultExportInterval is a default time interval between export of aggregated metrics.
// At the time of writing this is the same as the otelsdk.Reader's export interval.
//
// TODO/NOTE: this can only be set once on start up on the otelsdk.Reader via Options.
// We could parameterize this from HCP via a new field in the Agent Telemetry Config,
// set them in ConfigProvider, and use these values as defaults.
defaultExportInterval = 60 * time.Second

// defaultExportTimeout is the time the otelsdk.Reader waits on an export before cancelling it.
// At the time of writing this is the same as the otelsdk.Reader's export timeout default.
//
// TODO/NOTE: this can only be set once on start up on the otelsdk.Reader via Options.
// We could parameterize this from HCP via a new field in the Agent Telemetry Config,
// set them in ConfigProvider, and use these values as defaults.
defaultExportTimeout = 30 * time.Second
)

Expand Down

0 comments on commit 6f5ab7b

Please sign in to comment.