Skip to content

Add integration manifests for Java test optimization - #13434

Draft
chojomok wants to merge 3 commits into
mohammad-islam/java-instrumentation-manifest-pilotfrom
mohammad/manifests-test-optimization
Draft

chojomok wants to merge 3 commits into
mohammad-islam/java-instrumentation-manifest-pilotfrom
mohammad/manifests-test-optimization

Conversation

@chojomok

@chojomok chojomok commented Nov 12, 2026 •

Copy link
Copy Markdown

What Does This Do

Adds Manifest v1 integration manifests for Cucumber, Gradle, JaCoCo, JUnit 4, JUnit 5, Karate, Maven, Robolectric, ScalaTest, Selenium, TestNG, and Weaver. This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.

Motivation

Introduces a .manifest.yaml file alongside each instrumentation in every dd-trace-* tracer repository, describing its metadata in a structured, machine-readable format. An external service can scrape these files to discover and catalog all integrations supported across all Datadog tracers without parsing language-specific source code. Each manifest represents the latest state of its instrumentation and is meant to be updated as the instrumentation changes over time.

Additional Notes

This change adds structured, machine-readable integration manifests for Java test optimization:

  • Cucumber (cucumber)
  • Gradle (gradle)
  • JaCoCo (jacoco)
  • JUnit 4 (junit-4)
  • JUnit 5 (junit-5)
  • Karate (karate)
  • Maven (maven)
  • Robolectric (robolectric)
  • ScalaTest (scalatest)
  • Selenium (selenium)
  • TestNG (testng)
  • Weaver (weaver)

This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.

Detailed field-level review evidence for every manifest is provided below.
It has the same information as the changed files, so reviewing this description and its evidence comment is enough to understand the changes being proposed.

Integration Categories Systems Creation date
cucumber test.execution none 2023-08-07
gradle test.execution none 2023-03-28
jacoco other none 2023-06-19
junit-4 test.execution none 2020-07-08
junit-5 test.execution none 2020-08-19
karate test.execution none 2023-10-17
maven test.execution none 2023-04-06
robolectric test.execution none 2026-07-13
scalatest test.execution none 2023-12-13
selenium other none 2024-04-04
testng test.execution none 2020-08-20
weaver test.execution none 2025-01-20

Field-level review evidence

Tracer links show the instrumented behavior behind each value and are pinned to the reviewed source revision. Category and system values use the Manifest v1 vocabulary. Package names describe Maven delivery of the instrumented code. Display names use the official product branding. Creation dates use the first functional instrumentation commit.

cucumber — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name cucumber Tracer integration identity source — The only module in the integration, CucumberInstrumentation (assignment 'declared' in the grounding entry), calls super("cucumber", "cucumber-5"). Its first configuration name 'cucumber' matches the grounding integrations key. 'cucumber-5' is only an extra alias.
display_name Cucumber Official product name source — The decorator sets component 'cucumber' and instruments io.cucumber.core.backend.StepDefinition. That is the Cucumber (Cucumber-JVM) test framework itself, not one shared submodule.
description Instruments Cucumber-JVM step-definition execution, creating CI Visibility spans for each executed step. Complete Datadog patch-surface inventory source — Advice is applied to execute(Object[]) on every implementation of io.cucumber.core.backend.StepDefinition. The CoreStepDefinition wrapper is excluded (line 33), so each user step executes once under advice. The module extends InstrumenterModule.CiVisibility (line 18).
source — onStepStart starts a 'cucumber.step' span. Its resource is the step pattern, and it carries step.name, step.location, step.type and step.arguments tags. onStepFinish closes the scope and finishes the span. This matches 'a span for each executed step'.
source — CiVisibility.isApplicable returns true only when TargetSystem.CIVISIBILITY is enabled. The step spans therefore exist only under CI Visibility, which supports the 'CI Visibility spans' wording. The single-sentence description covers the integration's only operation family and invents nothing.
packages [io.cucumber:cucumber-core] Tracer-to-Maven package mapping source — The single muzzle pass block names group io.cucumber, module cucumber-core, versions [5.4.0,). This matches grounding publication_packages (package_source: muzzle). The cucumber-java and cucumber-junit-platform-engine coordinates appear only as test dependencies and are correctly left out.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — The advice wraps Cucumber's StepDefinition.execute, which is the test framework running a test case's step. CucumberStepDecorator.onStepStart (CucumberStepDecorator.java:32) creates a cucumber.step span for it, gated to CI Visibility. This is a customer-facing test-execution contract owned by the framework. It is not benchmark timing or merely running inside CI, so test.execution's reject_when does not apply. The patch inventory has only this one hook: no HTTP, RPC, messaging, DB, task, CI/CD pipeline orchestration or logging boundary. No other category qualifies, and nothing is over-pruned.
systems [] Manifest v1 system policy instrumentation source — The only span is a local in-process 'cucumber.step' span around step-definition execution. No database, messaging, cloud provider/service, platform, GenAI provider or RPC protocol identity is contacted or bound. Cucumber is a framework, which x-system-applicability rejects as a system identity. No x-system-definitions entry qualifies, so an empty set is correct.
creation_date 2023-08-07 first commit adding working instrumentation instrumentation source — git log --follow on this file goes back to commit the linked commit, 'Add Cucumber support to CI Visibility (#5611)'. Its author date is 2023-08-07 19:12:52 +0200, by Nikita Tkachenko. That commit first added CucumberInstrumentation.java and CucumberStepDecorator.java under instrumentation/cucumber, with functional advice. Later commits are refactors and moves. Earlier cucumber-related commits (2021, 2022) touch only the separate JUnit Cucumber integrations, not this one.
gradle — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name gradle Tracer integration identity source — Declared module calls super("gradle", "gradle-daemon-jvm-options"); every gradle-8.3 module (BuildScopeServices_8_3/8_10, DaemonLogging, PluginInjector, ServiceValidation) likewise declares "gradle" first.
source — Legacy (<8.3) module calls super("gradle", "gradle-build-listener"); the gradle-testing-5.1 JUnit4 modules share "gradle" after the product-named "ci-visibility" umbrella toggle, matching the grounding key 'gradle'.
display_name Gradle Official product name source — Instruments org.gradle.invocation.DefaultGradle, the Gradle build tool itself; all modules target org.gradle.* types of the Gradle runtime, so 'Gradle' (the product's established spelling, matching reviewed_runtime metadata) names exactly what is instrumented.
source — Test session is started with build system name "gradle" and the Gradle version, confirming the integration identity is the Gradle build tool.
description Instruments Gradle builds to report Test Optimization session, build-task, and test-module events, configuring test and compile tasks for Test Optimization and reordering JUnit 4 test classes run by Gradle when a test order is set. Complete Datadog patch-surface inventory source — onTestSessionStart (109), onBuildTaskStart/Fail/Finish (114-121), onTestModuleStart/Fail/Skip/Finish (133-150), onTestSessionFail/Finish (155-157) via BuildEventsHandler: session, build-task, and test-module events.
source — Legacy listener emits the same session (47, 84-87), build-task (105, 144-146) and test-module (123, 151-158) events for Gradle < 8.3, and configures projects/tracer (65, 132).
source — Applied plugin configures JavaCompile tasks (178, dd-javac-plugin injection), JaCoCo (181-201), and Test tasks (205) whose applyTo adds tracer JVM arguments: 'configuring test and compile tasks for Test Optimization'.
source — Enabled only when getCiVisibilityTestOrder() != null; wraps Gradle's JUnitTestClassProcessor executor in DDCollectAllTestClassesExecutor (69), which sorts JUnit 4 classes with JUnit4FailFastClassOrderer before execution (DDCollectAllTestClassesExecutor.java:42).
packages [] Tracer-to-Maven package mapping source — Compiles against 'compileOnly gradleApi()' (same in gradle-3.0/build.gradle:12 and gradle-testing-5.1/build.gradle:13); no muzzle pass blocks exist and modules use skipMuzzle. The instrumented org.gradle.* classes ship with the Gradle distribution, so the reviewed platform decision publication_packages=[] holds.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — Gradle's Test task is the test runner: beforeExecute/afterExecute (181-263) turn each Test task into a Test Optimization test module (onModuleStart/onModuleFinish with skip/empty reasons) within a build-level test session (116, 297); JUnit4 test-class processor hooks reorder test execution. This is the customer-facing test-runner contract (cross_signal test events). Rejected: cicd.pipeline (Gradle is a build tool, not a CI/CD pipeline orchestrator; build-task events are part of the test session), task.execution (build tasks are not concurrency task/future units), log.emission (GradleDaemonLoggingInstrumentation only reinitializes the tracer's own logger, not application log records), http.client/other families (no such operations). No other admitted category qualifies.
systems [] Manifest v1 system policy instrumentation source — All patched behavior routes into the tracer's InstrumentationBridge BuildEventsHandler (Test Optimization events) and Gradle-internal build/test types; no database, messaging, cloud, AI provider, RPC protocol, or FaaS platform client is instrumented, and Gradle itself is a build tool, not an admitted system identity. No x-system-definitions entry qualifies, so systems is affirmatively empty.
creation_date 2023-03-28 first commit adding working instrumentation instrumentation source — git log --diff-filter=A over dd-java-agent/instrumentation/gradle* and GradleBuildListener* paths: earliest add is the linked commit (author date 2023-03-28 14:11:04 +0200, 'Add session level visibility support for Gradle (#4894)'), which added the functional GradleBuildListener/GradleBuildListenerInstrumentation (later moved to gradle-3.0/legacy by e0a335c 'Split Gradle instrumentations into different modules', 2024-08-28). Earlier 'gradle'-matching commits only touch build configuration.
jacoco — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name jacoco Tracer integration identity source — super("jacoco") is the sole configuration name; grounding entry 'jacoco' lists this module as assignment 'declared'.
source — super("jacoco") on the second declared module.
source — super("jacoco") on the third declared module; all three share the same single name.
display_name JaCoCo Official product name source — All modules are bound to the JaCoCo agent runtime via hierarchy marker org.jacoco.agent.rt.IAgent. The POM 'JaCoCo :: Agent' is the Maven module label. 'JaCoCo' is the established product spelling, it is the library users know, and it covers exactly the coverage tool this integration hooks.
description Instruments the JaCoCo agent to collect per-test line and percentage coverage data for CI Visibility. Complete Datadog patch-surface inventory source — InsertProbeAdvice injects a call to CoveragePerTestBridge.recordCoverage into each JaCoCo probe, filtered by the included/excluded package config. The module is gated on isCiVisibilityCoverageLinesEnabled (line 38). This is the per-test line coverage.
source — visitTotalProbeCount advice records each class's total probe count through CoveragePerTestBridge.setTotalProbeCount. This supports per-test line coverage.
source — InstrumenterInstrumentation.instrument advice calls CoverageDataInjector.init. That registers the JaCoCo agent's execution data as a supplier on CoveragePercentageBridge.
source — The CI Visibility child process reads that supplier through JacocoChildProcessCoverageReporter. The data feeds total coverage percentage computation (JacocoCoverageProcessor line 408). This is the percentage coverage.
packages [org.jacoco:org.jacoco.agent] Tracer-to-Maven package mapping source — The muzzle pass block has group 'org.jacoco', module 'org.jacoco.agent' and versions [0.6.2,). This matches the grounding publication_packages (package_source muzzle). Only the classifier 'runtime' differs, and classifiers are correctly omitted.
category: other other Manifest v1 category policy · other definition instrumentation source — The full patch inventory has three hooks, all bytecode-instrumentation internals of the JaCoCo agent: Instrumenter.instrument(byte[]), ClassInstrumenter.visitTotalProbeCount, and ProbeInserter.visitMaxs/insertProbe. Together they hook coverage probe insertion and execution-data access. They create no spans and own no test lifecycle. test.execution is rejected because the integration does not execute test cases or test hooks; it only attributes coverage to tests run by other integrations. serialization is rejected because there is no public serialization API. No other admitted category describes code-coverage collection, so the exclusive fallback 'other' applies.
systems [] Manifest v1 system policy instrumentation source — The only effect is an in-process static call to datadog/trace/api/civisibility/coverage/CoveragePerTestBridge.recordCoverage. No database, messaging, RPC protocol, cloud provider, platform, or service client is hooked or contacted. JaCoCo is a library/framework, which the system definitions exclude, so no admitted identity qualifies.
creation_date 2023-06-19 first commit adding working instrumentation instrumentation source — git log --follow shows this file was added as dd-java-agent/instrumentation/jacoco/.../ProbeInserterInstrumentation.java in the linked commit ('Per test code coverage in CI Visibility (#5146)'), author date 2023-06-19 18:53:25 +0200. Its siblings (ClassInstrumenterInstrumentation, InstrumenterInstrumentation, build.gradle) were added in the same commit. A pickaxe search for 'org.jacoco.agent.rt' finds no earlier code. Earlier 2017-2018 'jacoco' commits only configure the tracer's own build coverage. The later move to jacoco-0.8.9 is a relocation.
junit-4 — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name junit-4 Tracer integration identity source — JUnit4Instrumentation calls super("ci-visibility", "junit-4"). Every declared module in the grounding entry declares junit-4 (for example JUnit4BeforeAfterInstrumentation super("ci-visibility","junit-4","setup-teardown") and MUnitInstrumentation super("ci-visibility","junit-4","junit-4-munit")). ci-visibility is the product umbrella toggle, so junit-4 is the shared integration name, and it matches the grounding integrations key junit-4.
display_name JUnit 4 Official product name source — The muzzle pass block is bounded to junit:junit versions [4.10,5), and JUnit 5 is a separate junit-5 integration. The POM evidence 'JUnit' (junit:junit:4.13, display-name.pom) names the library, and 'JUnit 4' is the established public name for this major-version scope. It is not a coordinate or a mechanically title-cased name.
description Instruments JUnit 4 test suites and tests for CI Visibility, including Cucumber and MUnit tests run on the JUnit 4 runner, with test skipping, retries, ordering, and setup/teardown tracing. Complete Datadog patch-surface inventory source — JUnit4TracingListener reports onTestSuiteStart/Finish (lines 40, 63) and onTestStart/Finish (lines 83, 106) to the CI Visibility TestEventsHandler. This covers test suites and tests. JUnitLegacySuiteEventsInstrumentation and BazelRunNotifierWrapperInstrumentation feed the same suite events for the JUnit38ClassRunner, PowerMock, and Bazel runner paths.
source — This module instruments the JUnit 4 runner io.cucumber.junit.Cucumber (childrenInvoker), and CucumberTracingListener reports CUCUMBER suite and test events. MUnitInstrumentation.java line 30 instruments munit.MUnitRunner, the JUnit 4 runner, and reports MUNIT events through MUnitTracingListener.
source — Test skipping: runChild advice is gated on isCiVisibilityTestSkippingEnabled and skips tests that the handler marks as skippable. JUnit4CucumberSkipInstrumentation does the same for Cucumber pickles.
source — Retries: runLeaf advice, gated on isCiVisibilityExecutionPoliciesEnabled (line 46), re-invokes the test in a do/while loop while executionPolicy.applicable(). Cucumber4ExecutionInstrumentation and MUnitExecutionInstrumentation provide the same for Cucumber and MUnit.
source — Ordering: Orderer.order exit advice, gated on getCiVisibilityTestOrder() != null, re-sorts the descriptions with FailFastDescriptionComparator. JUnit4TestSorterInstrumentation covers the Sorter path.
source — Setup/teardown tracing: JUnit4BeforeAfterInstrumentation advises invokeMethod(FrameworkMethod), and startTrace creates a 'junit' span per @Before/@After/@BeforeClass/@AfterClass/@BeforeParam/@AfterParam method with a test.callback tag.
packages [io.cucumber:cucumber-junit, junit:junit, org.scalameta:munit_2.13] Tracer-to-Maven package mapping source — The muzzle pass block has group 'junit', module 'junit', versions [4.10,5), with assertInverse. junit-4.13/build.gradle lines 8-10 also pass junit:junit [4.13,5).
source — The muzzle pass block has group 'io.cucumber', module 'cucumber-junit', versions [5.4.0,).
source — The muzzle pass block has group 'org.scalameta', module 'munit_2.13', versions [0.7.28,). All three coordinates exactly match the grounding publication_packages (package_source muzzle).
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — test.execution qualifies. The integration owns test execution through JUnit 4 runners: it reports test case and suite start, finish, failure, skip, and ignore events to CI Visibility, traces setup and teardown hooks (JUnit4BeforeAfterOperationsTracer line 18), retries and skips tests, and reorders them. That matches the definition 'Executes test cases or test lifecycle hooks through a test framework or runner'. The reject_when (benchmark-only, or running inside CI without owning test execution) does not apply. cicd.pipeline is rejected by its own reject_when (a test framework runs tests outside a pipeline orchestration contract). Skipping, retry, and ordering are mechanisms of the same test-execution capability, not separate categories. No HTTP, RPC, messaging, DB, logging, serialization, or task boundary is instrumented.
systems [] Manifest v1 system policy instrumentation source — Every hook hands test events to an in-process TestEventsHandler keyed by TestFrameworkInstrumentation (JUNIT4/CUCUMBER/MUNIT). No module instruments a client for a database, messaging system, cloud provider, gen-AI provider, FaaS platform, or RPC protocol. JUnit, Cucumber, and MUnit are frameworks, which the systems annotation explicitly rejects as identities. No x-system-definitions entry qualifies, so systems: [] is affirmatively correct.
creation_date 2020-07-08 first commit adding working instrumentation instrumentation source — git log --diff-filter=A --reverse over the JUnit 4 instrumentation paths (including predecessors before the 2023 split into junit-4.10/cucumber/munit modules and the later junit/ regrouping) shows that the first add is commit the linked commit, 'Added instrumentation for JUnit4 test framework.' It adds junit-4.gradle, JUnit4Decorator.java, and JUnit4Instrumentation.java (149 lines of functional instrumentation). Its author date is 2020-07-08 14:08:56 +0200; the commit date is 2020-07-24. No earlier JUnit instrumentation add exists.
junit-5 — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name junit-5 Tracer integration identity source — super("ci-visibility", "junit-5"): after the product-named ci-visibility umbrella toggle, every one of the 12 declared modules (JUnit5Instrumentation, JUnit5SkipInstrumentation, the three execution/test-retry modules, JUnit5BeforeAfterInstrumentation, JUnit5TestOrderInstrumentation, the Cucumber and Spock modules) shares the name junit-5. It is the grounding integrations key, and its only member name is junit-5.
source — super("ci-visibility", "junit-5", "junit-5-cucumber"): the Cucumber-on-JUnit-Platform module declares junit-5 as its shared name too, so this is one integration and should not be split out.
display_name JUnit 5 Official product name source — The hierarchy marker is the JUnit Platform type org.junit.platform.engine.TestEngine; the tracer reports the framework as JUNIT5 ('junit5' in TracingListener line 28). This binds the integration to JUnit 5 (Platform plus Jupiter).
description Instruments JUnit 5 test executions and lifecycle callbacks for CI Visibility, including Cucumber and Spock tests run on the JUnit Platform, with test skipping, retries, and fail-fast test ordering. Complete Datadog patch-surface inventory source — Test executions: the TestEngine.execute advice wraps the EngineExecutionListener with TracingListener. TracingListener then emits CI Visibility suite and test start, finish, skip, failure and ignore events (TracingListener.java lines 71-178).
source — Lifecycle callbacks: JUnit5BeforeAfterInstrumentation registers this InvocationInterceptor, which starts a 'junit' span for each BeforeAll, BeforeEach, AfterEach and AfterAll method.
source — Cucumber on the JUnit Platform: the CucumberTestEngine execute advice installs CucumberTracingListener. JUnit5SpockInstrumentation does the same for Spock with SpockTracingListener.
source — Test skipping: the shouldBeSkipped advice replaces the SkipResult with a skip when the CI Visibility handler returns a skip reason (ITR or test management). Cucumber and Spock have their own skip modules.
source — Retries: NodeTestTask.execute advice (enabled when execution policies are on) creates retry descriptors and re-executes retry tasks. There is also a Spock parameterized retry module.
source — Fail-fast test ordering: JupiterConfiguration.getDefaultTestClassOrderer and getDefaultTestMethodOrderer return FailFastClassOrderer and FailFastMethodOrderer when the CI Visibility test order is FAIL_FAST. The description invents no extra behavior and omits no distinct operation family.
packages [io.cucumber:cucumber-junit-platform-engine, org.junit.jupiter:junit-jupiter-api, org.junit.jupiter:junit-jupiter-engine, org.junit.platform:junit-platform-launcher, org.spockframework:spock-core] Tracer-to-Maven package mapping source — The muzzle pass blocks list org.junit.platform:junit-platform-launcher [1.3.0,) and org.junit.jupiter:junit-jupiter-api [5.3.0,).
source — The muzzle pass blocks list junit-platform-launcher [1.8.0,), org.junit.jupiter:junit-jupiter-engine [5.8.0,) and junit-jupiter-api [5.8.0,).
source — The muzzle pass block lists io.cucumber:cucumber-junit-platform-engine [5.4.0,).
source — The muzzle pass block lists org.spockframework:spock-core [2.0-groovy-3.0,). The five coordinates match grounding publication_packages exactly, with no versions and no test-only dependencies.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — test.execution fits its definition: the integration owns the JUnit Platform test-runner contract. The TestEngine.execute advice installs listeners that report test suites and test cases with their results (onTestStart, onTestFinish, onTestSkip, onTestFailure). BeforeAfterOperationsTracer.java:52 creates spans for setup and teardown hooks. Skipping, retry and fail-fast ordering also act on test execution. Signal scope is cross_signal and the reject_when cases (benchmark timing only, or only running inside CI) do not apply. Other categories considered: cicd.pipeline is rejected because there is no pipeline orchestration contract (its reject_when covers a test framework). task.execution is rejected because retry tasks are internal mechanics of test execution. No HTTP, RPC, messaging, db or logging boundary is instrumented. Nothing qualifying is omitted.
systems [] Manifest v1 system policy instrumentation source — All 12 modules extend InstrumenterModule.CiVisibility and instrument in-process test-framework types (TestEngine, Node.shouldBeSkipped, NodeTestTask, ExtensionRegistrar, JupiterConfiguration). None of them is a client for a database, messaging, cloud, AI provider or RPC protocol. JUnit, Cucumber and Spock are frameworks, which the systems reject_when explicitly excludes, and no admitted system definition qualifies. An empty array is therefore correct.
creation_date 2020-08-19 first commit adding working instrumentation instrumentation source — git log --diff-filter=A across the current and historical junit-5 paths (dd-java-agent/instrumentation/junit-5*, junit/junit-5*, JUnit5Instrumentation.java and JUnit5Decorator.java) finds commit the linked commit, 'Added JUnit5 instrumentation.', authored 2020-08-19 10:34:49 +0200. It first added JUnit5Instrumentation, JUnit5Decorator and TracingListener under dd-java-agent/instrumentation/junit-5. Later adds are splits or relocations (for example f282e8c 2023-10-16) and are not new functionality. The only earlier junit5 commit, 20bbc6d (2020-04-17, 'update junit5'), changes only gradle/dependencies.gradle and is build-only.
karate — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name karate Tracer integration identity source — super("ci-visibility", "karate"): the module's own config name is 'karate' after the product-level 'ci-visibility' umbrella toggle; the grounding entry 'karate' lists all four modules as 'declared'.
source — super("ci-visibility", "karate", "test-retry"): shares 'karate' after the umbrella; 'test-retry' is a cross-framework feature toggle, not the identity.
source — Karate 2.x module also declares super("ci-visibility", "karate"), so both version projects belong to one 'karate' integration.
display_name Karate Official product name source — Test suites are reported with TestFrameworkInstrumentation.KARATE and FRAMEWORK_NAME 'karate' (line 33): the integration instruments the Karate test framework as a whole.
source — KARATE is a named test-framework identity in the tracer. The supplied POM is '${project.artifactId}' (resolves to artifact ID 'karate-core'), so it is correctly replaced by the established product name 'Karate'.
description Instruments Karate test suites, scenarios, and steps for CI Visibility, including test reporting, skipping, and retries. Complete Datadog patch-surface inventory source — Runner.Builder constructor advice registers KarateTracingHook on every Karate runner.
source — beforeFeature/afterFeature report features as test suites (onTestSuiteStart/Failure/Skip/Finish); beforeScenario/afterScenario report scenarios as tests (onTestStart line 141, onTestFailure/Skip/Finish lines 164-171); beforeStep creates 'karate.step' spans (line 203).
source — When test skipping or test management is enabled, a skipReason causes onTestIgnore and returns false so the scenario is skipped (skipping).
source — RetryAdvice on ScenarioRuntime.run() re-runs the scenario while the TestExecutionPolicy applies; SuppressErrorAdvice on ScenarioResult.addStepResult suppresses failures of retried attempts (retries).
source — Karate 2.x RunListener dispatches FEATURE/SCENARIO/STEP enter/exit events to the same suite/test/step reporting and skipping logic (skip at lines 124-143, step span at 195); karate2.KarateExecutionInstrumentation applies retry and failure-suppression advice to ScenarioRuntime#call and ScenarioResult#addStepResult. The description covers every operation family without invented specifics.
packages [com.intuit.karate:karate-core, io.karatelabs:karate-core] Tracer-to-Maven package mapping source — muzzle pass group 'com.intuit.karate' module 'karate-core' versions [1.0.0,1.4.0) (and [1.4.0,) at line 14).
source — muzzle pass group 'io.karatelabs' module 'karate-core' versions [1.5.0,2.0.0).
source — muzzle pass group 'io.karatelabs' module 'karate-core' versions [2.0.0,). Matches grounding publication_packages exactly; karate-junit5 is test-only and correctly excluded.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — The integration owns test execution of a test framework: Karate features/scenarios are reported as test suites/tests with results, skipping and step spans, and KarateExecutionInstrumentation drives scenario re-execution. This is the customer-facing contract (cross_signal scope satisfied by CI Visibility test events and karate.step spans). No other category qualifies: no pipeline orchestration (cicd.pipeline reject_when), no outbound HTTP API hooked (Karate's own HTTP client is not instrumented here), no task/messaging/RPC boundary; retries and failure suppression are mechanisms of the same test-execution capability.
systems [] Manifest v1 system policy instrumentation source — Only Karate runner/scenario types are instrumented (Runner$Builder here; ScenarioRuntime/ScenarioResult in KarateExecutionInstrumentation line 41); no database, messaging, cloud, AI provider, platform or RPC protocol client is hooked. A test framework is not a system identity under x-system-applicability, so no admitted system definition qualifies.
instrumentation source — Karate 2.x modules likewise match only io.karatelabs.core runner/scenario types; no backend-bound boundary exists.
creation_date 2023-10-17 first commit adding working instrumentation instrumentation source — git log --follow traces this file back through the relocation from dd-java-agent/instrumentation/karate/src/... to its add in commit the linked commit 'Add support for Karate testing framework (#6041)', author date Tue, 17 Oct 2023, which added KarateInstrumentation, KarateTracingHook, KarateUtils and TestEventsHandlerHolder (functional instrumentation). Pickaxe (-S karate) and --grep=karate over history up to that date find no earlier Karate commit.
maven — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name maven Tracer integration identity source — Declared module MavenInstrumentation calls super("maven"); grounding key 'maven' lists this module as declared.
source — Second declared module calls super("ci-visibility", "maven", "surefire", "junit4"); 'maven' is the shared name after the product-named ci-visibility umbrella toggle.
display_name Maven Official product name source — Hooks org.apache.maven.cli.MavenCli (the Maven build tool entry point), and the sibling module instruments Maven Surefire providers; the integration covers the Maven build tool as a whole, so the POM name 'Maven Embedder' (an artifact-level module name) is narrower than the instrumented scope and 'Maven' is the established product name.
source — Test session is reported with build-system name "maven" and the Maven version, confirming the user-facing identity is Maven.
description Instruments Maven build and test execution for CI Visibility, including fail-fast ordering of JUnit 4 test classes run by Surefire. Complete Datadog patch-surface inventory source — Advice on MavenCli.customizeContainer registers MavenLifecycleParticipant; module is InstrumenterModule.CiVisibility gated by build instrumentation config (line 37).
source — Non-test mojo executions are reported as build tasks via onBuildTaskStart (build execution); test mojos (Surefire/Failsafe/Tycho) are reported as test modules via onTestModuleStart (line 110) and the tracer is configured into forked test JVMs.
source — On JUnit4Provider/JUnitCoreProvider setTestsToRun, test classes are sorted with JUnit4FailFastClassOrderer when the fail-fast test order is configured; matches the 'fail-fast ordering of JUnit 4 test classes run by Surefire' clause.
packages [org.apache.maven:maven-embedder, org.apache.maven.surefire:surefire-junit4, org.apache.maven.surefire:surefire-junit47] Tracer-to-Maven package mapping source — muzzle pass block group org.apache.maven, module maven-embedder, versions [3.2.1,) with assertInverse.
source — muzzle pass blocks for org.apache.maven.surefire:surefire-junit4 (line 7-8) and org.apache.maven.surefire:surefire-junit47 (line 14-15), versions [3.0.0,); matches grounding publication_packages exactly.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — Maven Surefire/Failsafe test mojos are reported as CI Visibility test modules (onTestModuleStart/Finish/Fail/Skip) inside a test session started in MavenLifecycleParticipant line 77, and JUnit4ClassOrderInstrumentation reorders Surefire's test classes; this is the runner owning test lifecycle and results (cross_signal scope). cicd.pipeline rejected: Maven is a build tool running inside a pipeline, not a CI/CD pipeline orchestrator, and its build-task events are part of the test session rather than a pipeline contract. cli.internal rejected: the MavenCli hook is only a container-customization mechanism to register a lifecycle participant; no command-dispatch span is created. No HTTP, RPC, messaging, DB, logging, or other qualifying capability exists in the patch surface.
systems [] Manifest v1 system policy instrumentation source — All emitted behavior goes through a CI Visibility BuildEventsHandler for the local build; neither module calls a database, broker, cloud provider, RPC protocol, or other admitted system identity (JUnit4ClassOrderInstrumentation only sorts TestsToRun in-process), so no schema system qualifies.
creation_date 2023-04-06 first commit adding working instrumentation instrumentation source — git log --follow shows this file added (as dd-java-agent/instrumentation/maven-3.2.1/...) by commit the linked commit 'CI Visibility Maven instrumentation (#4934)', author date 2023-04-06, together with MavenExecutionListener, MavenLifecycleParticipant, and MavenUtils; no earlier functional Maven instrumentation commit exists (earlier 'maven' commits are 2017 release-plugin chores). The surefire module was added later (2025-04-04).

Evidence for robolectric, scalatest, selenium, testng, weaver continues in the PR comment "Field-level review evidence (continued)", in the same format.

Testing

None. This PR only adds metadata files.

Risks

The added YAML is declarative metadata and introduces no runtime instrumentation or public API change. Metadata can become stale if later instrumentation changes do not update its manifest. Package lists describe Maven delivery and are not a complete list of targeted assemblies or modules.

Contributor Checklist

Jira ticket: IDMPL-594

@chojomok chojomok added tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: documentation comp: tooling Build & Tooling labels Nov 12, 2026 — with ChatGPT Codex Connector
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 59.76% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ae18073 | Docs | Give us feedback!

@dd-octo-sts

dd-octo-sts Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 13.97 s 13.89 s [+0.1%; +1.2%] (maybe worse)
startup:insecure-bank:tracing:Agent 12.92 s 12.97 s [-1.1%; +0.3%] (no difference)
startup:petclinic:appsec:Agent 17.75 s 17.63 s [-0.1%; +1.4%] (no difference)
startup:petclinic:iast:Agent 17.39 s 17.72 s [-2.5%; -1.1%] (significantly better)
startup:petclinic:profiling:Agent 17.55 s 17.22 s [+0.8%; +3.1%] (maybe worse)
startup:petclinic:sca:Agent 17.83 s 17.69 s [-0.1%; +1.8%] (no difference)
startup:petclinic:tracing:Agent 16.30 s 16.79 s [-7.0%; +1.1%] (no difference)

Commit: ae180736 · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@chojomok chojomok changed the title Add instrumentation manifests for Java test optimization Add integration manifests for Java test optimization Nov 17, 2026
@chojomok
chojomok changed the base branch from master to mohammad-islam/java-instrumentation-manifest-pilot November 20, 2026 18:17
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chojomok

Copy link
Copy Markdown
Author

Field-level review evidence (continued)

Tracer links show the instrumented behavior behind each value and are pinned to the reviewed source revision. Category and system values use the Manifest v1 vocabulary. Package names describe Maven delivery of the instrumented code. Display names use the official product branding. Creation dates use the first functional instrumentation commit.

robolectric — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name robolectric Tracer integration identity source — The only module declaring this name is RobolectricInstrumentation (extends InstrumenterModule.CiVisibility), with super("ci-visibility", "robolectric"). 'ci-visibility' is the product-wide umbrella toggle, so 'robolectric' is the integration-specific name. No other dd-java-agent module declares "robolectric". The validator's grounding check also passed.
display_name Robolectric Official product name source — The Javadoc says the module 'Captures the emulated Android SDK for tests running under Robolectric', using the capitalized product name. The module hooks org.robolectric.internal.TestEnvironment (line 30), so it instruments the Robolectric framework itself, not a broader shared module.
description Instruments Robolectric test lifecycle setup to enrich CI Visibility test spans with emulated Android SDK and Robolectric version metadata. Complete Datadog patch-surface inventory source — The only advice applied is exit advice on TestEnvironment implementations' setUpApplicationState, which is Robolectric's per-test environment setup. It runs on both normal and exceptional exit and calls RobolectricTestAnnotator.annotate().
source — annotate() only tags the active span when its RequestContext carries the CI_VISIBILITY slot, meaning it is a CI Visibility test span (lines 31-40). It does not create spans. It sets test.android.api_level, test.android.release, test.android.codename (emulated SDK metadata, lines 42-47) and test.android.robolectric.version, parsed from the robolectric jar name (lines 48-51, 135-151). Each behavior in the description is in source, with nothing omitted or overstated.
source — The tag constants are defined at lines 88-91: TEST_ANDROID_API_LEVEL, TEST_ANDROID_RELEASE, TEST_ANDROID_CODENAME, TEST_ANDROID_ROBOLECTRIC_VERSION.
packages [org.robolectric:robolectric] Tracer-to-Maven package mapping source — The single muzzle pass block names group 'org.robolectric', module 'robolectric', versions '[4.13,)'. android-all is only an extraDependency, not a publication package. The project has no other pass blocks.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — The integration deliberately hooks Robolectric's per-test lifecycle setup (TestEnvironment#setUpApplicationState). That method runs before every test body under the Robolectric test runner, which fits test.execution's 'test lifecycle hooks through a test framework or runner'. test.execution has signal_scope cross_signal, so the integration need not create its own spans. It enriches the CI Visibility test events of the test being run (RobolectricTestAnnotator.java:36-51). The tagging belongs to the test-execution contract itself, not to a more specific operation, so the applicability reject_when (tagging beneath a more specific contract) does not move it elsewhere. The other categories do not apply: no pipeline orchestration (cicd.pipeline), no HTTP/RPC/DB/messaging/log/serialization boundary, and no task submission. 'other' is excluded because test.execution applies. No qualifying category is omitted.
systems [] Manifest v1 system policy instrumentation source — The whole patch surface is one in-process exit hook plus this helper. The helper reads RuntimeEnvironment.getApiLevel(), Build.VERSION.RELEASE and the robolectric jar location, then tags the active test span. It talks to no database, messaging system, cloud provider/service, platform, GenAI provider or RPC protocol, so no x-system-definitions identity qualifies. Robolectric and Android are a test framework and an emulated SDK, and neither is in the system vocabulary. An empty array is correct.
creation_date 2026-07-13 first commit adding working instrumentation instrumentation source — git log --follow on this file shows two commits. the linked commit ('Add Android/Robolectric visibility to Test Optimization spans (#11852)', author date 2026-07-13 17:12:42 +0200) added the module, the advice and the annotator. The later 311e16c (2026-09-29) only removed helper listings. Searching -G'org.robolectric' and -i -G'robolectric' across dd-java-agent finds no earlier commit, only 224bf8a (2026-09-16, version support). This is a functional first add, not a relocation.
scalatest — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name scalatest Tracer integration identity source — super("ci-visibility", "scalatest"): the product-named umbrella toggle 'ci-visibility' comes first, followed by the integration name 'scalatest'. ScalatestForkInstrumentation (line 20) and ScalatestSkipInstrumentation (line 25) use the same names. All four modules are 'declared' under grounding key 'scalatest'.
source — super("ci-visibility", "scalatest", "test-retry"). After the umbrella name, 'scalatest' is the shared integration-specific name. 'test-retry' is a cross-framework CI Visibility feature toggle.
display_name ScalaTest Official product name source — The reporter tags suites with TestFrameworkInstrumentation.SCALATEST and test framework 'scalatest' (line 32). This binds the integration to the ScalaTest framework itself, not to a broader shared module.
description Instruments ScalaTest test execution and suite/test lifecycle reporting for CI Visibility, including test selection and retry policies. Complete Datadog patch-surface inventory source — DispatchEventAdvice on DispatchReporter/TestSortingReporter/SuiteSortingReporter.apply(Event) calls DatadogReporter.handle(event). That routes run, suite and test lifecycle events (start, success, failure, ignore, cancel, pending, suite abort) to the CI Visibility TestEventsHandler (DatadogReporter.java lines 35-75, 99-109, 162-173).
source — Filter.apply advice rewrites the filter result so a test is marked ignored when runContext.skip(...) returns a skip reason (ITR skipping or disabled tests, RunContext.java lines 119-150). This covers 'test selection'.
source — ExecutionAdvice on SuperEngine.runTestImpl wraps test invocation in a TestExecutionWrapper bound to a TestExecutionPolicy. While the policy is applicable it re-invokes runTestImpl, and failures are suppressed for retries (TestExecutionWrapper.java line 27). The advice is gated by isCiVisibilityExecutionPoliciesEnabled. This covers 'retry policies'. The SBT fork monitor only deduplicates reporting and is a mechanism, so leaving it out is not a material omission.
packages [org.scalatest:scalatest_2.12] Tracer-to-Maven package mapping source — The only muzzle block is a pass directive with group 'org.scalatest' and module 'scalatest_2.12' (lines 7-11), versions [3.0.8,). This matches the grounding publication_packages (package_source muzzle). The compileOnly scalatest_2.13 dependency is not a muzzle pass coordinate.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — The customer-facing contract is the ScalaTest test runner. The advice reports test suite and test case start and finish and results through TestEventsHandler (onTestSuiteStart line 100, onTestStart line 163, onTestFinish line 195). It also controls test case execution through skip (ScalatestSkipInstrumentation, Filter.apply) and retry (ScalatestExecutionInstrumentation, SuperEngine.runTestImpl). This matches test.execution (test case execution, test result), and the integration owns test execution, so reject_when does not apply. No other category qualifies: cicd.pipeline is rejected because this is a test framework outside pipeline orchestration, task.execution does not fit test runs, and there are no HTTP, RPC, DB, messaging, logging or serialization hooks.
systems [] Manifest v1 system policy instrumentation source — Every hooked type is internal to the ScalaTest framework: org.scalatest.DispatchReporter, TestSortingReporter, SuiteSortingReporter, Filter, Args, tools.Framework and SuperEngine. None is a client for a database, messaging system, cloud provider, GenAI provider or RPC protocol in the systems vocabulary. A framework is rejected as a system identity, and Datadog CI Visibility is not an admitted system, so the empty array is correct.
creation_date 2023-12-13 first commit adding working instrumentation instrumentation source — git log --diff-filter=A over dd-java-agent/instrumentation/scalatest* returns the linked commit ('Implement Scalatest support (#6331)') as the oldest add. Its author date is 2023-12-13 12:58:49 +0100. It added the functional code (ScalatestInstrumentation, DatadogReporter, RunContext, ScalatestItrInstrumentation) under the predecessor directory instrumentation/scalatest. A case-insensitive --grep for scalatest finds no earlier commit. Later commits only add features or build config.
selenium — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name selenium Tracer integration identity source — The only module, SeleniumInstrumentation (grounding assignment 'declared'), extends InstrumenterModule.CiVisibility and calls super("ci-visibility", "selenium"). 'ci-visibility' is the shared product-named umbrella toggle, so 'selenium' is the integration-specific name. It matches the grounding key 'selenium', whose only member name is 'selenium'.
display_name Selenium Official product name source — The integration hooks org.openqa.selenium.WebDriver implementations, which is the Selenium WebDriver browser-automation API. 'Selenium' is the established product name. It is neither broader nor narrower than what is instrumented.
source — The tracer identifies the browser driver as SELENIUM_BROWSER_DRIVER = "selenium".
description Instruments Selenium browser tests to associate test events with browser metadata and correlate them with RUM sessions. Complete Datadog patch-surface inventory source — Advice is applied to four WebDriver methods. The constructor advice registers SeleniumTestListener with InstrumentationTestBridge. The get(String) advice stores the driver in the current TestContext and calls SeleniumUtils.afterPageOpen. The close() and quit() advice call SeleniumUtils.beforePageClose for each window.
source — beforePageClose acts only when the active span is a TEST span (lines 143-147). It sets these tags: test type 'browser', browser driver 'selenium', driver version, browser name and browser version. When window.DD_RUM is present it sets TEST_IS_RUM_ACTIVE and calls DD_RUM.stopSession() (lines 164-168), then clears the RUM context cookie. This supports 'associate test events with browser metadata'.
source — afterPageOpen runs inside a TEST span. It injects the cookie 'datadog-ci-visibility-test-execution-id' with the test trace ID so RUM sessions can be correlated with the test. This supports 'correlate them with RUM sessions'.
source — beforeTestEnd applies the same enrichment when the driver is still open at test end. No behavior in the description is missing from source, and no material operation family is omitted.
packages [org.seleniumhq.selenium:selenium-java] Tracer-to-Maven package mapping source — The muzzle pass block declares group 'org.seleniumhq.selenium', module 'selenium-java', versions '[3.13.0,)'. This matches the grounding publication_packages (package_source muzzle). The htmlunit drivers are test-only dependencies and are correctly excluded.
category: other other Manifest v1 category policy · other definition instrumentation source — The full patch inventory has four hooks: the WebDriver constructor, get(String), close() and quit(). None creates a span or owns an operation boundary. They tag an existing TEST span created by a separate test framework, propagate a RUM correlation cookie, and stop the RUM session. test.execution was rejected because Selenium is a browser-automation library, not a test framework or runner, and it does not own test discovery or execution; its listener only enriches tests run by other frameworks (reject_when: it does not own test execution). http.client was rejected because get(url) drives a browser, not a general-purpose HTTP client API. cicd.pipeline was rejected because there is no pipeline orchestration. Injecting the cookie or script is propagation/tagging, which the applicability policy excludes. No admitted category applies, so the exclusive value 'other' is correct, and no qualifying category is omitted.
systems [] Manifest v1 system policy instrumentation source — The hierarchy matcher accepts any WebDriver implementation, including RemoteWebDriver, HtmlUnit, Chrome and Firefox drivers. Browsers are selected at runtime, and no admitted system identity (database, messaging, cloud provider, GenAI provider, RPC protocol, FaaS platform) is contacted through a dedicated client. Datadog RUM is reached only through an injected cookie and browser JavaScript, not through an admitted system. 'selenium' is a framework/library label and is not in the systems enum. No definition qualifies, so the empty array is correct.
creation_date 2024-04-04 first commit adding working instrumentation instrumentation source — git log --follow --diff-filter=A returns a single add: commit the linked commit 'Implement Selenium support in CI Visibility (#6799)' by Nikita Tkachenko, author date 2024-04-04 12:40:55 +0200. This commit added SeleniumInstrumentation, SeleniumUtils and SeleniumTestListener, so it is functional and not a relocation. A case-insensitive search of commit messages for 'selenium' shows no earlier commit.
testng — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name testng Tracer integration identity source — Declared module TestNGInstrumentation calls super("testng"); TestNGSkipInstrumentation (super("testng","testng-itr")) and the 6.4/7.0 class-listener, execution and order modules (super("ci-visibility","testng",...)) all share 'testng' after the product-wide 'ci-visibility' umbrella toggle. 'testng' is the grounding integrations key.
source — super("ci-visibility", "testng", "test-retry") — 'testng' is the integration name shared after the CI Visibility umbrella name.
display_name TestNG Official product name source — Instruments org.testng.TestNG, the TestNG framework entry point; the project's established spelling is 'TestNG' (class name TestNG, package org.testng). POM 'testng' for org.testng:testng:7.0.0 names the same library; 'TestNG' is the correct public capitalization rather than the artifact ID.
source — Reports TestFrameworkInstrumentation.TESTNG to the CI Visibility test events handler, binding the integration to the TestNG framework identity.
description Instruments TestNG test execution and lifecycle events for CI Visibility, including conditional test skipping, retry policies, and fail-fast test ordering. Complete Datadog patch-surface inventory source — Constructor advice on org.testng.TestNG registers TracingListener and TestNGSuiteListener, which report test suite start/finish/failure and test start/success/failure/skip to CI Visibility (TracingListener.java lines 39-143) — test execution and lifecycle events.
source — invokeMethod advice throws SkipException when the CI Visibility handler returns a SkipReason (ITR/test management), honoring the ITR unskippable group — conditional test skipping.
source — When execution policies are enabled, RetryAnnotationTransformer injects RetryAnalyzer and TestInvoker.shouldRetryTestMethod/runTestResultListener advice drives retries and status propagation — retry policies.
source — Prepends FailFastOrderInterceptor to TestNG method interceptors when test order is 'FAIL_FAST'; any other configured order throws — fail-fast test ordering. All materially distinct operation families are covered once without invented specifics.
packages [org.testng:testng] Tracer-to-Maven package mapping source — muzzle pass block group 'org.testng', module 'testng', versions '[6.4,7.0.0)'; testng-6.4 includes the shared testng-common project (which has no muzzle block of its own).
source — muzzle pass blocks group 'org.testng', module 'testng', versions '[7.0.0,7.6)' and '[7.6,)'; matches grounding publication_packages [org.testng:testng] with package_source muzzle.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — The integration owns TestNG test-case execution: TracingListener (registered by TestNGInstrumentation constructor advice) reports onTestStart/onTestFinish/onTestFailure/onTestSkip and suite start/finish/failure to the CI Visibility TestEventsHandler; class-listener modules hook TestMethodWorker.invokeBefore/AfterClassMethods (setup/teardown lifecycle). This is the customer-facing test framework contract, matching test.execution's definition; reject_when (benchmark timing or merely running inside CI) does not apply. Skipping, retry and fail-fast ordering are features of that same test-execution capability, not distinct categories. cicd.pipeline is rejected (no pipeline orchestration contract); no HTTP, DB, messaging, RPC, task, or other admitted category is instrumented, so the set is complete.
systems [] Manifest v1 system policy instrumentation source — All six modules extend InstrumenterModule.CiVisibility and hook only in-process TestNG classes (TestNG, MethodInvocationHelper, TestMethodWorker, TestInvoker); no database, messaging, cloud, AI provider, platform, or RPC protocol client is instrumented. TestNG is a framework, which the systems schema rejects as an identity, so no x-system-definitions entry qualifies.
creation_date 2020-08-20 first commit adding working instrumentation instrumentation source — git log --follow --diff-filter=A on this file and a reverse add-history search over all testng/TestNG paths both resolve to commit bbc9a6d 'Added TestNG instrumentation.' (author date 2020-08-20 13:15:29 +0200), which added functional TestNGInstrumentation, TracingListener and TestNGDecorator under testng-6.4 plus the gradle project — the first functional add; later commits are relocations and feature additions.
weaver — accepted field evidence
Field or member Published value Derivation authority Accepted evidence
_v 1 Manifest v1 contract Deterministic schema gate passed.
name weaver Tracer integration identity source — The single module, WeaverInstrumentation (InstrumenterModule.CiVisibility), calls super("ci-visibility", "weaver"). 'ci-visibility' is the shared product umbrella toggle, so 'weaver' is the integration-specific name. No other module in the weaver-0.9 directory declares a configuration name.
display_name Weaver Official product name source — The instrumented type is weaver.framework.SbtTask, which is part of the Weaver test framework's sbt runner and not specific to the cats binding. The POM 'weaver-cats' is an artifact ID for one Weaver module, so 'Weaver', the framework's established name, is the right label.
source — The tracer lists the framework as TestFrameworkInstrumentation.WEAVER, and DatadogWeaverReporter reports test.framework 'weaver'.
description Instruments Weaver test execution to report test-suite and test-case lifecycle events to CI Visibility. Complete Datadog patch-surface inventory source — Constructor advice on SbtTask wraps the SuiteEvent queue (ConcurrentLinkedQueue for 0.8.x, LinkedBlockingQueue for 0.9+) in TaskDefAware proxies. On construction the proxies call DatadogWeaverReporter.start(), and they forward every polled event to processEvent.
source — processEvent dispatches SuiteStarted, SuiteFinished, and TestFinished to the CI Visibility TestEventsHandler. That covers onTestSuiteStart/Finish, plus onTestStart, onTestFailure, onTestSkip, and onTestFinish (lines 75-166). This matches the description's suite and test-case lifecycle reporting, with nothing invented or omitted.
packages [com.disneystreaming:weaver-cats_3, org.typelevel:weaver-cats_3] Tracer-to-Maven package mapping source — The muzzle block has two pass directives: com.disneystreaming:weaver-cats_3 [0.8.4,) at lines 8-12 and org.typelevel:weaver-cats_3 [0.9.0,) at lines 14-18. These exactly match the manifest packages. There are no fail blocks and no extra coordinates.
category: test.execution test.execution Manifest v1 category policy · test.execution definition instrumentation source — The integration owns Weaver's test execution through the SbtTask event queue and reports test-case start, result (failure or skip), and finish, plus suite start and finish. These go through TestEventsHandler (cross_signal CI Visibility test events). That is the customer-facing contract of test.execution. The other categories do not apply: cicd.pipeline is excluded by its reject_when (a test framework outside pipeline orchestration). task.execution does not apply because the queue proxies are an event-observation mechanism, not a task boundary. There are no HTTP, RPC, DB, messaging, logging, or serialization hooks in the patch surface.
systems [] Manifest v1 system policy instrumentation source — The only patch point is the in-process weaver.framework.SbtTask constructor. The advice wraps a local event queue, and the reporter (DatadogWeaverReporter) only calls the in-process CI Visibility TestEventsHandler. No database, messaging, cloud, AI provider, RPC protocol, or platform identity is contacted or bound. Weaver itself is a framework, which the schema rejects as a system, so no x-system-definitions entry qualifies.
creation_date 2025-01-20 first commit adding working instrumentation instrumentation source — git log --follow --diff-filter=A on this file shows it was first added in the linked commit, 'Add basic Scala Weaver sbt support (#8189)', author date 2025-01-20 16:30:07 +0100. That commit added the functional module under dd-java-agent/instrumentation/weaver: WeaverInstrumentation, DatadogWeaverReporter, TaskDefAwareQueueProxy, and WeaverUtils. It is also the earliest commit in a case-insensitive 'weaver' history grep. Later commits only add the org migration, version support, and directory refactors.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: tooling Build & Tooling tag: ai generated Largely based on code generated by an AI or LLM tag: no release notes Changes to exclude from release notes type: documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant