Skip to content

Commit

Permalink
Small fixes to SpanProcessor docs around shutdown() (#2535)
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass authored Mar 17, 2022
1 parent 69c9e39 commit 09a03ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry-sdk/src/opentelemetry/sdk/trace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def on_end(self, span: "ReadableSpan") -> None:
"""

def shutdown(self) -> None:
"""Called when a :class:`opentelemetry.sdk.trace.Tracer` is shutdown."""
"""Called when a :class:`opentelemetry.sdk.trace.TracerProvider` is shutdown."""

def force_flush(self, timeout_millis: int = 30000) -> bool:
"""Export all ended spans to the configured Exporter that have not yet
Expand Down Expand Up @@ -1140,7 +1140,7 @@ def add_span_processor(self, span_processor: SpanProcessor) -> None:
self._active_span_processor.add_span_processor(span_processor)

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

0 comments on commit 09a03ae

Please sign in to comment.