Skip to content

Commit 94e795b

Browse files
authored
SQUASHME: Fix lint issue, move changelog entry to breaking changes section
1 parent a3038e6 commit 94e795b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3636
([#4302](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4302))
3737
- `opentelemetry-instrumentation-grpc`: Fix bidirectional streaming RPCs raising `AttributeError: 'generator' object has no attribute 'add_done_callback'`
3838
([#4259](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4259))
39-
- `opentelemetry-instrumentation-logging`: Use `LogRecord.getMessage()` to format and extract each log record's body text to more closely match the expected usage of the logging system
40-
([#4372](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4372))
4139

4240
### Breaking changes
4341

4442
- `opentelemetry-instrumentation-boto`: Remove instrumentation
4543
([#4303](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4303))
44+
- `opentelemetry-instrumentation-logging`: Use `LogRecord.getMessage()` to format and extract each log record's body text to more closely match the expected usage of the logging system. Previously, in some cases the `LogRecord.msg` attribute was accessed directly.
45+
([#4372](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4372))
4646

4747
## Version 1.40.0/0.61b0 (2026-03-04)
4848

instrumentation/opentelemetry-instrumentation-logging/tests/test_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,8 @@ def test_simple_log_record_processor_custom_single_obj(self):
484484
("['a non-string with a percent-s', 'and arg']"),
485485
("['a non-string with a percent-s', '%s']"),
486486
]
487-
for i, msg in enumerate(expected):
488-
record = processor.get_log_record(i)
487+
for index, msg in enumerate(expected):
488+
record = processor.get_log_record(index)
489489
self.assertEqual(record.log_record.body, msg)
490490

491491
@patch.dict(os.environ, {"OTEL_SDK_DISABLED": "true"})

0 commit comments

Comments
 (0)