Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
lmolkova committed Dec 12, 2024
1 parent 1a371cf commit 3c09ed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions opentelemetry-api/src/opentelemetry/_logs/_internal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@


class Logger(ABC):
"""Handles emitting events and logs via `LogRecord`."""
"""Handles emitting events and logs."""

def __init__(
self,
Expand All @@ -75,7 +75,7 @@ def is_enabled(
@abstractmethod
def emit(
self,
name: str = None,
event_name: str = None,
timestamp: Optional[int] = None,
observed_timestamp: Optional[int] = None,
severity_number: Optional[SeverityNumber] = None,
Expand All @@ -102,7 +102,7 @@ def is_enabled(

def emit(
self,
name: str = None,
event_name: str = None,
timestamp: Optional[int] = None,
observed_timestamp: Optional[int] = None,
severity_number: Optional[SeverityNumber] = None,
Expand Down Expand Up @@ -155,7 +155,7 @@ def is_enabled(

def emit(
self,
name: str = None,
event_name: str = None,
timestamp: Optional[int] = None,
observed_timestamp: Optional[int] = None,
severity_number: Optional[SeverityNumber] = None,
Expand All @@ -165,7 +165,7 @@ def emit(
attributes: Optional[Attributes] = None,
) -> None:
self._logger.emit(
name=name,
event_name=event_name,
timestamp=timestamp,
observed_timestamp=observed_timestamp,
severity_number=severity_number,
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-api/tests/logs/test_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_logger(
class LoggerTest(_logs.NoOpLogger):
def emit(
self,
name: str = None,
event_name: str = None,
timestamp: typing.Optional[int] = None,
observed_timestamp: typing.Optional[int] = None,
severity_number: typing.Optional[_logs.SeverityNumber] = None,
Expand Down

0 comments on commit 3c09ed0

Please sign in to comment.