Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Commit 36b326a

Browse files
authored
Update async_.py (#910)
1 parent 08c34fc commit 36b326a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opencensus/common/transports/async_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def _thread_main(self):
9292
Pulls pending data off the queue and writes them in
9393
batches to the specified tracing backend using the exporter.
9494
"""
95+
execution_context.set_is_exporter(True)
9596
quit_ = False
9697

9798
while True:
@@ -143,7 +144,6 @@ def start(self):
143144
self._thread.daemon = True
144145
# Indicate that this thread is an exporter thread. Used for
145146
# auto-collection.
146-
execution_context.set_is_exporter(True)
147147
self._thread.start()
148148
atexit.register(self._export_pending_data)
149149

0 commit comments

Comments
 (0)