Skip to content

Commit 0322bf7

Browse files
authored
Disconnect gRPC client stub when shutting down OTLPSpanExporter
1 parent 33acdf3 commit 0322bf7

File tree

1 file changed

+1
-0
lines changed
  • exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc

1 file changed

+1
-0
lines changed

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def shutdown(self, timeout_millis: float = 30_000, **kwargs) -> None:
360360
# wait for the last export if any
361361
self._export_lock.acquire(timeout=timeout_millis / 1e3)
362362
self._shutdown = True
363+
self._client = None
363364
self._export_lock.release()
364365

365366
@property

0 commit comments

Comments
 (0)