diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py index b7e56eda38..d7b7ec8ff2 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py @@ -438,6 +438,7 @@ def force_flush(self, timeout_millis: int = 30000) -> bool: "exc_text", "filename", "funcName", + "getMessage", "message", "levelname", "levelno", @@ -548,7 +549,7 @@ def _translate(self, record: logging.LogRecord) -> LogRecord: body = self.format(record) else: if isinstance(record.msg, str) and record.args: - body = record.msg % record.args + body = record.getMessage() else: body = record.msg