Repository navigation
Conversation
Contributor
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Adds Manifest v1 integration manifests for Apache Spark Executor, Apache Spark Exit, Apache Spark Launcher, OpenLineage Spark, and Apache Spark. This is declarative metadata only. Runtime instrumentation and public APIs are unchanged.
Motivation
Introduces a
.manifest.yamlfile 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 spark:
spark-executor)spark-exit)spark-launcher)spark-openlineage)spark)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 is enough to understand the changes being proposed.
spark-executortask.execution2024-02-27spark-exitother2025-04-01spark-launcherother2026-02-23spark-openlineageother2025-04-02sparktask.execution2023-04-24Field-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.
spark-executor— accepted field evidence_v1namespark-executorsource — The decorator's instrumentationNames() returns {"spark-executor"}.
display_nameApache Spark ExecutordescriptionInstruments Apache Spark executor task execution, creating spark.task spans with task and execution metrics.source — SPARK_TASK = "spark.task". onTaskStart tags task_id and task_thread_name (34-35). onTaskEnd tags stage, job, and app identifiers (52-65) and sets TaskMetrics as span metrics (68-97): deserialize, run, CPU, and GC times, result size, spills, I/O, and shuffle read/write. The description matches this single operation family and invents no specifics.
packagesorg.apache.spark:spark-sql_2.12,org.apache.spark:spark-sql_2.13]category: task.executiontask.executiontask.executiondefinitionsystems[]creation_date2024-02-27spark-exit— accepted field evidence_v1namespark-exitdisplay_nameApache Spark Exitsparkintegration.descriptionInstruments JVM exits to finish and flush Apache Spark application traces with their exit status.source — On entry to exit, the advice captures the exit-code argument (line 8) and reflectively calls listener.finishApplication(now, null, exitCode, null).
source — finishApplication marks the spark.application span as an error with "Spark Application Failed with exit code N" when exitCode != 0 (lines 393-400). It finishes the span (line 418) and calls tracer.flush() synchronously (line 422). This matches the description's finish, flush, and exit-status semantics, and the description adds nothing beyond them.
packagesorg.apache.spark:spark-sql_2.12,org.apache.spark:spark-sql_2.13]source — Consumer project spark_2.13 depends on spark-common (line 42) and declares muzzle pass blocks for org.apache.spark:spark-sql_2.13 over [3.2.0,4.0.0) and [4.0.0,). Together with spark_2.12 this equals the grounding publication_packages.
category: otherotherotherdefinitionotheris correct.systems[]creation_date2025-04-01spark-launcher— accepted field evidence_v1namespark-launcherdisplay_nameApache Spark LauncherdescriptionInstruments Apache Spark application submissions through SparkLauncher, emitting application lifecycle spans.source — createLauncherSpan builds a 'spark.launcher.launch' span (span type spark, resource SparkLauncher.startApplication). stateChanged/infoChanged (lines 130-174) tag the app state and app ID, record timings for the CONNECTED, SUBMITTED and RUNNING states, and finish the span or mark an error on final states. So the span tracks the submitted application's lifecycle, as the description says. AbstractSparkInstrumentation.java:129 (RunMainAdvice) and the shutdown hook also finish it.
packagesorg.apache.spark:spark-sql_2.12,org.apache.spark:spark-sql_2.13]source — Consumer spark_2.13 includes spark-common (line 42) and declares muzzle passes for org.apache.spark:spark-sql_2.13 over [3.2.0,4.0.0) and [4.0.0,). This matches the grounding publication_packages (package_source muzzle), with no versions or extra coordinates.
category: otherotherotherdefinitionsystems[]creation_date2026-02-23spark-openlineage— accepted field evidence_v1namespark-openlineagedisplay_nameOpenLineage SparkdescriptionInstruments OpenLineage Spark listener initialization to configure Datadog Data Jobs lineage event delivery.source — The captured conf is read back at line 259. setupOpenLineage then rewrites it to use a composite transport with an HTTP agent transport to the Datadog agent URL/endpoint, gzip compression, _dd run tags, and a circuit breaker (lines 190-217). That matches 'configure Datadog Data Jobs lineage event delivery'. No spans are created, and the description claims no other behavior.
packagesorg.apache.spark:spark-sql_2.12,org.apache.spark:spark-sql_2.13]source — The consumer project spark_2.13 includes spark-common (line 42) and has muzzle pass blocks for org.apache.spark:spark-sql_2.13 [3.2.0,4.0.0) and [4.0.0,). This matches the grounding publication_packages exactly, with no versions.
category: otherotherotherdefinitionsystems[]creation_date2025-04-02spark— accepted field evidence_v1namesparksource — Spark212Instrumentation, annotated @autoservice(InstrumenterModule.class), extends AbstractSparkInstrumentation. Spark213Instrumentation.java:24 does the same.
display_nameApache SparkdescriptionInstruments Apache Spark application, SQL query, job, stage, streaming-batch, and failed-task execution.source — Creates the spark.application span. finishApplication (lines 374-418) marks it with an error on a thrown exception, a non-zero exit code, a failed job, or a failed SQL analysis. The SparkSubmit runMain, YARN ApplicationMaster.finish, SparkSession.sql and QueryExecution.assertAnalyzed advices feed it (AbstractSparkInstrumentation.java:51-87).
source — Creates a spark.sql span for each SQL execution (SparkListenerSQLExecutionStart), with query_id, description and details tags.
source — onJobStart creates spark.job spans. onStageSubmitted creates spark.stage spans (line 648). getOrCreateStreamingBatchSpan creates spark.streaming_batch spans for structured streaming (line 433).
source — onTaskEnd emits a spark.task span (sendTaskSpan, line 804) only for TaskFailedReason outcomes where countTowardsTaskFailures is true. This confirms 'failed-task' is the right qualifier. The OpenLineage listener injection and SparkPlan metadata enrichment are supporting mechanisms, not separate operation families, so leaving them out of the description is not a material omission.
packagesorg.apache.spark:spark-sql_2.12,org.apache.spark:spark-sql_2.13]source — The muzzle pass blocks cover spark-sql_$scalaVersion with scalaVersion '2.13', over [3.2.0,4.0.0) and [4.0.0,). This matches the grounding publication_packages. No versions or extra coordinates are published.
category: task.executiontask.executiontask.executiondefinitionsystems[]creation_date2023-04-24Testing
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
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: IDMPL-594