Skip to content

Commit

Permalink
Increase batch size in background thread transport (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
liyanhui1228 authored Nov 28, 2017
1 parent 0a92e60 commit 95bf4e0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
from opencensus.trace.exporters.transports import base

_DEFAULT_GRACE_PERIOD = 5.0 # Seconds
_WAIT_PERIOD = 3.0 # Seconds
_DEFAULT_MAX_BATCH_SIZE = 2
_DEFAULT_MAX_BATCH_SIZE = 10
_WAIT_PERIOD = 1.0 # Seconds
_WORKER_THREAD_NAME = 'opencensus.trace.Worker'
_WORKER_TERMINATOR = object()

Expand Down Expand Up @@ -107,6 +107,7 @@ def _thread_main(self):
'traceId': trace_id,
'spans': spans,
}

self.exporter.emit(spans_json)

for _ in range(len(items)):
Expand Down

0 comments on commit 95bf4e0

Please sign in to comment.