From 23b19454452f69af6bfe27f2ac587a9d62ef8c2d Mon Sep 17 00:00:00 2001 From: Liudmila Molkova Date: Wed, 11 Dec 2024 20:14:53 -0800 Subject: [PATCH] nits --- .../src/opentelemetry/_logs/_internal/__init__.py | 10 +++++----- opentelemetry-api/tests/logs/test_proxy.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/opentelemetry-api/src/opentelemetry/_logs/_internal/__init__.py b/opentelemetry-api/src/opentelemetry/_logs/_internal/__init__.py index 179ade29db..dd49797e80 100644 --- a/opentelemetry-api/src/opentelemetry/_logs/_internal/__init__.py +++ b/opentelemetry-api/src/opentelemetry/_logs/_internal/__init__.py @@ -49,7 +49,7 @@ class Logger(ABC): - """Handles emitting events and logs via `LogRecord`.""" + """Handles emitting events and logs.""" def __init__( self, @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/opentelemetry-api/tests/logs/test_proxy.py b/opentelemetry-api/tests/logs/test_proxy.py index 9971a9254d..d6e344e65b 100644 --- a/opentelemetry-api/tests/logs/test_proxy.py +++ b/opentelemetry-api/tests/logs/test_proxy.py @@ -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,