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
When default
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL |
When otel.instrumentation.spring-batch.experimental-span-attributes=true
Spans
| Span kind | Attributes |
|---|---|
| INTERNAL | job.system (STRING) |
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
otel.instrumentation.spring-batch.experimental-span-attributes | boolean | false | Adds the experimental attribute job.system to spans. |
otel.instrumentation.spring-batch.experimental.chunk.new-trace | boolean | false | When 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.enabled | boolean | false | When enabled, spans will be created for each item processed. Please note that this may lead to a high number of spans being created. |