From 38b2b78f6162b52370bb460266cd2bb971558d03 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:18:38 +0000 Subject: [PATCH 1/2] Initial plan From d544bfa3f025a0c1a4d88e1ef72c59252cee8f3b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:20:28 +0000 Subject: [PATCH 2/2] test: stabilize nonexisting instrumentation assertion Co-authored-by: xrmx <12932+xrmx@users.noreply.github.com> --- tests/instrumentation/base_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/instrumentation/base_tests.py b/tests/instrumentation/base_tests.py index da2e265ed..e7564cff4 100644 --- a/tests/instrumentation/base_tests.py +++ b/tests/instrumentation/base_tests.py @@ -82,7 +82,9 @@ def test_instrument_nonexisting_method_on_module(): def test_instrument_nonexisting_method(caplog): with caplog.at_level(logging.DEBUG, "elasticapm.instrument"): _TestInstrumentNonExistingMethod().instrument() - assert_any_record_contains(caplog.records, "has no attribute", "elasticapm.instrument") + assert_any_record_contains( + caplog.records, "Skipping instrumentation of logging.Logger.non_existing_method:", "elasticapm.instrument" + ) def test_instrument_broken_module(caplog):