diff --git a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java index c2680b3764d1..0426436e91d8 100644 --- a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java +++ b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/junit/InstrumentationExtension.java @@ -59,6 +59,7 @@ public void afterEach(ExtensionContext context) throws Exception { @Override public void afterAll(ExtensionContext extensionContext) throws Exception { + testRunner.clearAllExportedData(); testRunner.afterTestClass(); }