You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-06-27 00:21:15 +02:00
Enable golint & gofmt, resolve issues (#214)
* Add golint to linters and resolve issues. I decided to remove constructors for some of the propagation types because the constructors can be reduced to either using the zero value or a single, non optional member. * Enable gofmt and commit fixes
This commit is contained in:
@ -24,9 +24,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
defaultMaxQueueSize = 2048
|
||||
defaultScheduledDelayMillis = time.Duration(5000 * time.Millisecond)
|
||||
defaultMaxExportBatchSize = 512
|
||||
defaultMaxQueueSize = 2048
|
||||
defaultScheduledDelay = time.Duration(5000 * time.Millisecond)
|
||||
defaultMaxExportBatchSize = 512
|
||||
)
|
||||
|
||||
var (
|
||||
@ -86,7 +86,7 @@ func NewBatchSpanProcessor(e export.SpanBatcher, opts ...BatchSpanProcessorOptio
|
||||
}
|
||||
|
||||
o := BatchSpanProcessorOptions{
|
||||
ScheduledDelayMillis: defaultScheduledDelayMillis,
|
||||
ScheduledDelayMillis: defaultScheduledDelay,
|
||||
MaxQueueSize: defaultMaxQueueSize,
|
||||
MaxExportBatchSize: defaultMaxExportBatchSize,
|
||||
}
|
||||
|
Reference in New Issue
Block a user