Skip to content

Commit

Permalink
Remove LogEmitter.flush()
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavmarla committed Aug 6, 2022
1 parent 22bfe82 commit fcb7561
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions opentelemetry-sdk/src/opentelemetry/sdk/_logs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,12 +396,6 @@ def emit(self, record: LogRecord):
log_data = LogData(record, self._instrumentation_scope)
self._multi_log_processor.emit(log_data)

# TODO: Should this flush everything in pipeline?
# Prior discussion https://github.com/open-telemetry/opentelemetry-python/pull/1916#discussion_r659945290
def flush(self):
"""Ensure all logging output has been flushed."""
self._multi_log_processor.force_flush()


class LogEmitterProvider:
def __init__(
Expand Down

0 comments on commit fcb7561

Please sign in to comment.