From 721ab9a70731ca1c5860afffa98166c6929b0ddd Mon Sep 17 00:00:00 2001 From: Daniel Mohedano Date: Fri, 20 Feb 2026 12:04:08 +0100 Subject: [PATCH 1/3] feat: add display name as parameter for dynamic tests --- .../junit5/SpockTracingListener.java | 6 +++-- .../instrumentation/junit5/SpockUtils.java | 3 ++- .../junit5/JUnitPlatformUtils.java | 20 +++++++++++----- .../junit5/TracingListener.java | 23 +++++++++++++++++-- .../src/test/groovy/JUnit5Test.groovy | 1 + .../test/resources/test-factory/events.ftl | 4 ++++ .../resources/test-retry-factory/events.ftl | 12 ++++++++++ .../bootstrap/instrumentation/api/Tags.java | 1 + 8 files changed, 59 insertions(+), 11 deletions(-) diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockTracingListener.java b/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockTracingListener.java index f88cf5c5852..d403e3002f2 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockTracingListener.java +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockTracingListener.java @@ -119,7 +119,8 @@ private void testCaseExecutionStarted(final TestDescriptor testDescriptor) { private void testMethodExecutionStarted(TestDescriptor testDescriptor, MethodSource testSource) { TestDescriptor suiteDescriptor = SpockUtils.getSpecDescriptor(testDescriptor); String displayName = testDescriptor.getDisplayName(); - String testParameters = JUnitPlatformUtils.getParameters(testSource, displayName); + String testParameters = + JUnitPlatformUtils.getParameters(testDescriptor, testSource, displayName); List tags = JUnitPlatformUtils.getTags(testDescriptor); TestSourceData testSourceData = SpockUtils.toTestSourceData(testDescriptor); @@ -221,7 +222,8 @@ private void testMethodExecutionSkipped( final TestDescriptor testDescriptor, final MethodSource methodSource, final String reason) { TestDescriptor suiteDescriptor = SpockUtils.getSpecDescriptor(testDescriptor); String displayName = testDescriptor.getDisplayName(); - String testParameters = JUnitPlatformUtils.getParameters(methodSource, displayName); + String testParameters = + JUnitPlatformUtils.getParameters(testDescriptor, methodSource, displayName); List tags = testDescriptor.getTags().stream().map(TestTag::getName).collect(Collectors.toList()); TestSourceData testSourceData = SpockUtils.toTestSourceData(testDescriptor); diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockUtils.java b/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockUtils.java index eaa4a14dcc3..8cd89350722 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockUtils.java +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5-spock-2.0/src/main/java/datadog/trace/instrumentation/junit5/SpockUtils.java @@ -89,7 +89,8 @@ public static TestIdentifier toTestIdentifier(TestDescriptor testDescriptor) { MethodSource methodSource = (MethodSource) testSource; String testSuiteName = methodSource.getClassName(); String displayName = spockNode.getDisplayName(); - String testParameters = JUnitPlatformUtils.getParameters(methodSource, displayName); + String testParameters = + JUnitPlatformUtils.getParameters(testDescriptor, methodSource, displayName); return new TestIdentifier(testSuiteName, displayName, testParameters); } else { diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/JUnitPlatformUtils.java b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/JUnitPlatformUtils.java index 14c12cbcc60..ac7849dce81 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/JUnitPlatformUtils.java +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/JUnitPlatformUtils.java @@ -148,12 +148,14 @@ private static Method getTestMethod(MethodSource methodSource) { } } - public static String getParameters(MethodSource methodSource, String displayName) { - if (methodSource.getMethodParameterTypes() == null - || methodSource.getMethodParameterTypes().isEmpty()) { - return null; + public static String getParameters( + TestDescriptor testDescriptor, MethodSource methodSource, String displayName) { + if (isDynamicTest(testDescriptor) + || (methodSource.getMethodParameterTypes() != null + && !methodSource.getMethodParameterTypes().isEmpty())) { + return "{\"metadata\":{\"test_name\":" + toJson(displayName) + "}}"; } - return "{\"metadata\":{\"test_name\":" + toJson(displayName) + "}}"; + return null; } @Nullable @@ -164,7 +166,7 @@ public static TestIdentifier toTestIdentifier(TestDescriptor testDescriptor) { String testSuiteName = methodSource.getClassName(); String testName = methodSource.getMethodName(); String displayName = testDescriptor.getDisplayName(); - String testParameters = getParameters(methodSource, displayName); + String testParameters = getParameters(testDescriptor, methodSource, displayName); return new TestIdentifier(testSuiteName, testName, testParameters); } else { @@ -240,6 +242,12 @@ public static boolean isParameterizedTest(TestDescriptor testDescriptor) { return "test-template".equals(lastSegment.getType()); } + public static boolean isDynamicTest(TestDescriptor testDescriptor) { + // retries add a "retry-attempt" segment at the end of the uniqueId, so the "dynamic-test" + // segment might not be found in position (segments.size() - 1) + return getIDSegmentValue(testDescriptor, "dynamic-test") != null; + } + public static boolean isRetry(TestDescriptor testDescriptor) { return getIDSegmentValue(testDescriptor, RETRY_DESCRIPTOR_ID_SUFFIX) != null; } diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java index 8f4f693fc7e..9dcccedd5d3 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java @@ -3,6 +3,9 @@ import datadog.trace.api.civisibility.config.TestSourceData; import datadog.trace.api.civisibility.execution.TestExecutionHistory; import datadog.trace.api.civisibility.telemetry.tag.TestFrameworkInstrumentation; +import datadog.trace.bootstrap.instrumentation.api.AgentSpan; +import datadog.trace.bootstrap.instrumentation.api.AgentTracer; +import datadog.trace.bootstrap.instrumentation.api.Tags; import java.util.List; import java.util.stream.Collectors; import org.junit.platform.engine.EngineExecutionListener; @@ -119,7 +122,8 @@ private void testMethodExecutionStarted(TestDescriptor testDescriptor, MethodSou String displayName = testDescriptor.getDisplayName(); String testName = testSource.getMethodName(); - String testParameters = JUnitPlatformUtils.getParameters(testSource, displayName); + String testParameters = + JUnitPlatformUtils.getParameters(testDescriptor, testSource, displayName); List tags = JUnitPlatformUtils.getTags(testDescriptor); TestSourceData testSourceData = JUnitPlatformUtils.toTestSourceData(testDescriptor); @@ -136,6 +140,13 @@ private void testMethodExecutionStarted(TestDescriptor testDescriptor, MethodSou testSourceData, null, TestEventsHandlerHolder.getExecutionHistory(testDescriptor)); + + if (JUnitPlatformUtils.isDynamicTest(testDescriptor)) { + AgentSpan span = AgentTracer.activeSpan(); + if (span != null) { + span.setTag(Tags.TEST_IS_DYNAMIC, true); + } + } } private void testCaseExecutionFinished( @@ -224,7 +235,8 @@ private void testMethodExecutionSkipped( String displayName = testDescriptor.getDisplayName(); String testName = testSource.getMethodName(); - String testParameters = JUnitPlatformUtils.getParameters(testSource, displayName); + String testParameters = + JUnitPlatformUtils.getParameters(testDescriptor, testSource, displayName); List tags = testDescriptor.getTags().stream().map(TestTag::getName).collect(Collectors.toList()); TestSourceData testSourceData = JUnitPlatformUtils.toTestSourceData(testDescriptor); @@ -242,5 +254,12 @@ private void testMethodExecutionSkipped( testSourceData, reason, TestEventsHandlerHolder.getExecutionHistory(testDescriptor)); + + if (JUnitPlatformUtils.isDynamicTest(testDescriptor)) { + AgentSpan span = AgentTracer.activeSpan(); + if (span != null) { + span.setTag(Tags.TEST_IS_DYNAMIC, true); + } + } } } diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy index 7fd5a4b5459..e13d33a23ef 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy @@ -13,6 +13,7 @@ import java.util.concurrent.CopyOnWriteArrayList import org.example.TestAssumption import org.example.TestAssumptionAndSucceed import org.example.TestAssumptionLegacy + import org.example.TestError import org.example.TestFactory import org.example.TestFailed diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl index 9f0dd405173..299b2883fbf 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl @@ -118,8 +118,10 @@ "test.final_status" : "pass", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_succeed\"}}", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", "test.status" : "pass", @@ -166,8 +168,10 @@ "test.final_status" : "pass", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_succeed\"}}", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", "test.status" : "pass", diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl index cb87ef28399..07fba873cb8 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl @@ -118,8 +118,10 @@ "test.final_status" : "pass", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_succeed\"}}", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", "test.status" : "pass", @@ -169,8 +171,10 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_failed\"}}", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", "test.status" : "fail", @@ -220,9 +224,11 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_failed\"}}", "test.retry_reason" : "auto_test_retry", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", @@ -273,9 +279,11 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_failed\"}}", "test.retry_reason" : "auto_test_retry", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", @@ -326,9 +334,11 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, + "test.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_failed\"}}", "test.retry_reason" : "auto_test_retry", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", @@ -380,9 +390,11 @@ "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, "test.has_failed_all_retries" : "true", + "test.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", + "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_failed\"}}", "test.retry_reason" : "auto_test_retry", "test.source.file" : "dummy_source_path", "test.source.method" : "test_factory()Ljava/lang/Iterable;", diff --git a/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java b/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java index d826704527c..635539e7cb1 100644 --- a/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java +++ b/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java @@ -98,6 +98,7 @@ public class Tags { public static final String TEST_IS_NEW = "test.is_new"; public static final String TEST_IS_RETRY = "test.is_retry"; public static final String TEST_RETRY_REASON = "test.retry_reason"; + public static final String TEST_IS_DYNAMIC = "test.is_dynamic"; public static final String TEST_IS_MODIFIED = "test.is_modified"; public static final String TEST_HAS_FAILED_ALL_RETRIES = "test.has_failed_all_retries"; public static final String TEST_FAILURE_SUPPRESSED = "test.failure_suppressed"; From c0271a7280cc9b0a30c3e29c7314445f5a426e9e Mon Sep 17 00:00:00 2001 From: Daniel Mohedano Date: Fri, 20 Feb 2026 12:13:10 +0100 Subject: [PATCH 2/3] chore: lint --- .../junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy | 1 - 1 file changed, 1 deletion(-) diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy index e13d33a23ef..7fd5a4b5459 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/groovy/JUnit5Test.groovy @@ -13,7 +13,6 @@ import java.util.concurrent.CopyOnWriteArrayList import org.example.TestAssumption import org.example.TestAssumptionAndSucceed import org.example.TestAssumptionLegacy - import org.example.TestError import org.example.TestFactory import org.example.TestFailed From 1e40a01be06973f291f44a10ab107cdf226b3dfa Mon Sep 17 00:00:00 2001 From: Daniel Mohedano Date: Fri, 20 Feb 2026 16:57:13 +0100 Subject: [PATCH 3/3] fix: tag name --- .../instrumentation/junit5/TracingListener.java | 4 ++-- .../src/test/resources/test-factory/events.ftl | 6 +++--- .../test/resources/test-retry-factory/events.ftl | 14 +++++++------- .../trace/bootstrap/instrumentation/api/Tags.java | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java index 9dcccedd5d3..ab38320ed48 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/main/java/datadog/trace/instrumentation/junit5/TracingListener.java @@ -144,7 +144,7 @@ private void testMethodExecutionStarted(TestDescriptor testDescriptor, MethodSou if (JUnitPlatformUtils.isDynamicTest(testDescriptor)) { AgentSpan span = AgentTracer.activeSpan(); if (span != null) { - span.setTag(Tags.TEST_IS_DYNAMIC, true); + span.setTag(Tags.TEST_JUNIT_IS_DYNAMIC, true); } } } @@ -258,7 +258,7 @@ private void testMethodExecutionSkipped( if (JUnitPlatformUtils.isDynamicTest(testDescriptor)) { AgentSpan span = AgentTracer.activeSpan(); if (span != null) { - span.setTag(Tags.TEST_IS_DYNAMIC, true); + span.setTag(Tags.TEST_JUNIT_IS_DYNAMIC, true); } } } diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl index 299b2883fbf..ccee0a8b4b5 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-factory/events.ftl @@ -118,7 +118,7 @@ "test.final_status" : "pass", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_succeed\"}}", @@ -168,7 +168,7 @@ "test.final_status" : "pass", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_succeed\"}}", @@ -200,4 +200,4 @@ }, "type" : "test", "version" : 2 -} ] \ No newline at end of file +} ] diff --git a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl index 07fba873cb8..17c3604e3ae 100644 --- a/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl +++ b/dd-java-agent/instrumentation/junit/junit-5/junit-5.3/src/test/resources/test-retry-factory/events.ftl @@ -118,7 +118,7 @@ "test.final_status" : "pass", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_succeed\"}}", @@ -171,7 +171,7 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", "test.parameters" : "{\"metadata\":{\"test_name\":\"dynamic_test_failed\"}}", @@ -224,7 +224,7 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", @@ -279,7 +279,7 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", @@ -334,7 +334,7 @@ "test.failure_suppressed" : "true", "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", @@ -390,7 +390,7 @@ "test.framework" : "junit5", "test.framework_version" : ${content_meta_test_framework_version}, "test.has_failed_all_retries" : "true", - "test.is_dynamic" : "true", + "test.junit5.is_dynamic" : "true", "test.is_retry" : "true", "test.module" : "junit-5.3", "test.name" : "test_factory", @@ -424,4 +424,4 @@ }, "type" : "test", "version" : 2 -} ] \ No newline at end of file +} ] diff --git a/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java b/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java index 635539e7cb1..35a07329a65 100644 --- a/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java +++ b/internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/Tags.java @@ -98,7 +98,7 @@ public class Tags { public static final String TEST_IS_NEW = "test.is_new"; public static final String TEST_IS_RETRY = "test.is_retry"; public static final String TEST_RETRY_REASON = "test.retry_reason"; - public static final String TEST_IS_DYNAMIC = "test.is_dynamic"; + public static final String TEST_JUNIT_IS_DYNAMIC = "test.junit5.is_dynamic"; public static final String TEST_IS_MODIFIED = "test.is_modified"; public static final String TEST_HAS_FAILED_ALL_RETRIES = "test.has_failed_all_retries"; public static final String TEST_FAILURE_SUPPRESSED = "test.failure_suppressed";