Skip to content

Commit

Permalink
fix: add missing typing on TracerProvider.shutdown (open-telemetry#4365)
Browse files Browse the repository at this point in the history
  • Loading branch information
jd authored Dec 19, 2024
1 parent 1778249 commit b482235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ def add_span_processor(self, span_processor: SpanProcessor) -> None:
# SynchronousMultiSpanProcessor and ConcurrentMultiSpanProcessor.
self._active_span_processor.add_span_processor(span_processor)

def shutdown(self):
def shutdown(self) -> None:
"""Shut down the span processors added to the tracer provider."""
self._active_span_processor.shutdown()
if self._atexit_handler is not None:
Expand Down

0 comments on commit b482235

Please sign in to comment.