We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 136b793 commit 4588180Copy full SHA for 4588180
opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py
@@ -696,11 +696,11 @@ def __init__(
696
def resource(self):
697
return self._resource
698
699
- def emit(self, record: LogRecord | APILogRecord):
+ def emit(self, record: APILogRecord):
700
"""Emits the :class:`LogData` by associating :class:`LogRecord`
701
and instrumentation info.
702
"""
703
- if isinstance(record, APILogRecord):
+ if not isinstance(record, LogRecord):
704
record = LogRecord._from_api_log_record(record)
705
record.resource = self._resource
706
log_data = LogData(record, self._instrumentation_scope)
0 commit comments