Skip to content

Commit

Permalink
Fix testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Wh1isper committed Oct 18, 2023
1 parent e726f24 commit f8bc1f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions duetector/collectors/otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ def initialize(
self._initialized = True

def shutdown(self):
self.provider.shutdown()
self.provider = None
if self.provider:
self.provider.shutdown()
self._initialized = False
self.provider = None


class OTelCollector(Collector):
Expand Down

0 comments on commit f8bc1f1

Please sign in to comment.