This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/spring-batch-3.0.md.

Spring Batch

OpenTelemetry Java agent instrumentation

This instrumentation enables spans for Spring Batch job execution, including job, step, and chunk processing.

  • Name: spring-batch-3.0
  • Scope: io.opentelemetry.spring-batch-3.0
  • Target versions: org.springframework.batch:spring-batch-core:[3.0.0.RELEASE,5)
  • Library: https://spring.io/projects/spring-batch

Telemetry

  • Span attributes: job.system

Configuration

OptionTypeDefaultDescription
otel.instrumentation.spring-batch.experimental-span-attributesbooleanfalseAdds the experimental attribute job.system to spans.
otel.instrumentation.spring-batch.experimental.chunk.new-tracebooleanfalseWhen enabled, a new root span will be created for each chunk processing. Please note that this may lead to a high number of spans being created.
otel.instrumentation.spring-batch.item.enabledbooleanfalseWhen enabled, spans will be created for each item processed. Please note that this may lead to a high number of spans being created.

Data

  • JSON: /data/javaagent/instrumentations/spring-batch-3.0/spring-batch-3.0-2d171edff9df.json
  • Explore: /java-agent/instrumentation/spring-batch-3.0