Skip to content

Commit

Permalink
Disconnect gRPC client stub when shutting down OTLPSpanExporter
Browse files Browse the repository at this point in the history
  • Loading branch information
xmakro authored Dec 21, 2024
1 parent 33acdf3 commit 0322bf7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def shutdown(self, timeout_millis: float = 30_000, **kwargs) -> None:
# wait for the last export if any
self._export_lock.acquire(timeout=timeout_millis / 1e3)
self._shutdown = True
self._client = None
self._export_lock.release()

@property
Expand Down

0 comments on commit 0322bf7

Please sign in to comment.