Skip to content
TraceStax Docs

Java

The TraceStax Java SDK supports Spring Batch, Quartz Scheduler, and any custom executor-based worker. It works with Java 11+ and is available on Maven Central.

  • Java 11+
  • Spring Boot 3.x (for Spring Batch integration) or any Quartz 2.x setup
<dependency>
<groupId>io.tracestax</groupId>
<artifactId>tracestax-java</artifactId>
<version>1.0.0</version>
</dependency>

Add the auto-configuration dependency and set your API key:

<dependency>
<groupId>io.tracestax</groupId>
<artifactId>tracestax-spring-batch</artifactId>
<version>1.0.0</version>
</dependency>
application.yml
tracestax:
api-key: ${TRACESTAX_API_KEY}

The starter registers a JobExecutionListener and StepExecutionListener automatically — no changes to your @Job or @Step beans.


PropertyEnv varDefaultDescription
tracestax.api-keyTRACESTAX_API_KEYRequired
tracestax.worker-idTRACESTAX_WORKER_IDhostname + PIDWorker identifier
tracestax.enabledTRACESTAX_ENABLEDtrueSet to false in tests
tracestax.ingest-urlTRACESTAX_INGEST_URLhttps://ingest.tracestax.comCustom endpoint
tracestax.timeout-ms3000HTTP timeout

application-test.yml
tracestax:
enabled: false

Or use the provided no-op client:

TraceStaxClient client = TraceStaxClient.noop();