Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes to SpanProcessor docs around shutdown() #2535

Merged
merged 1 commit into from
Mar 17, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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