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

Commit 1e5c952

Browse files
committed
Fix atexit
1 parent afe428b commit 1e5c952

File tree

1 file changed

+1
-2
lines changed
  • contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter

1 file changed

+1
-2
lines changed

contrib/opencensus-ext-azure/opencensus/ext/azure/metrics_exporter/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ def __init__(self, is_stats=False, **options):
5858
retention_period=self.options.storage_retention_period,
5959
source=self.__class__.__name__,
6060
)
61-
self._atexit_handler = atexit.register(
62-
self.shutdown, self.options.grace_period)
61+
self._atexit_handler = atexit.register(self.shutdown)
6362
self.exporter_thread = None
6463
# For redirects
6564
self._consecutive_redirects = 0 # To prevent circular redirects

0 commit comments

Comments
 (0)