@@ -38,8 +38,8 @@ const (
38
38
)
39
39
40
40
type QueueConf struct {
41
- SpanQueueLength int
42
- SpanQueueMaxExportBatchLength int
41
+ SpanQueueLength int
42
+ SpanMaxExportBatchLength int
43
43
}
44
44
45
45
var _ SpanProcessor = (* BatchSpanProcessor )(nil )
@@ -79,13 +79,13 @@ func NewBatchSpanProcessor(
79
79
exporter = ex
80
80
}
81
81
var spanQueueLength = DefaultMaxQueueLength
82
- var spanQueueMaxExportBatchLength = DefaultMaxExportBatchLength
82
+ var spanMaxExportBatchLength = DefaultMaxExportBatchLength
83
83
if queueConf != nil {
84
84
if queueConf .SpanQueueLength > 0 {
85
85
spanQueueLength = queueConf .SpanQueueLength
86
86
}
87
- if queueConf .SpanQueueMaxExportBatchLength > 0 { // todo: need max limit
88
- spanQueueMaxExportBatchLength = queueConf .SpanQueueMaxExportBatchLength
87
+ if queueConf .SpanMaxExportBatchLength > 0 { // todo: need max limit
88
+ spanMaxExportBatchLength = queueConf .SpanMaxExportBatchLength
89
89
}
90
90
}
91
91
@@ -126,7 +126,7 @@ func NewBatchSpanProcessor(
126
126
queueName : queueNameSpan ,
127
127
batchTimeout : time .Duration (DefaultScheduleDelay ) * time .Millisecond ,
128
128
maxQueueLength : spanQueueLength ,
129
- maxExportBatchLength : spanQueueMaxExportBatchLength ,
129
+ maxExportBatchLength : spanMaxExportBatchLength ,
130
130
maxExportBatchByteSize : DefaultMaxExportBatchByteSize ,
131
131
exportFunc : newExportSpansFunc (exporter , spanRetryQM , fileQM , finishEventProcessor ),
132
132
finishEventProcessor : finishEventProcessor ,
0 commit comments