mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 03:10:48 +00:00
Needed to pass a time.Duration in for WithExportTimeout and WithBatchTimeout
This commit is contained in:
parent
a1caed3938
commit
fa4e707927
1 changed files with 2 additions and 2 deletions
|
|
@ -81,9 +81,9 @@ func Setup(ctx context.Context, endpoint string, sampleRatio float64) (*Telemetr
|
|||
// The maximum number of spans to export in a single batch
|
||||
sdktrace.WithMaxExportBatchSize(sdktrace.DefaultMaxExportBatchSize),
|
||||
// How long an export operation can take before timing out
|
||||
sdktrace.WithExportTimeout(sdktrace.DefaultExportTimeout),
|
||||
sdktrace.WithExportTimeout(time.Duration(sdktrace.DefaultExportTimeout) * time.Millisecond),
|
||||
// How often to export, even if the batch isn't full
|
||||
sdktrace.WithBatchTimeout(5 * time.Second), // SDK default is 5s
|
||||
sdktrace.WithBatchTimeout(time.Duration(sdktrace.DefaultScheduleDelay) * time.Millisecond),
|
||||
}
|
||||
|
||||
// Define resource with service and client information
|
||||
|
|
|
|||
Loading…
Reference in a new issue