Skip to content

Commit

Permalink
Polish BatchJobObservationConvention sample
Browse files Browse the repository at this point in the history
Signed-off-by: Taeik Lim <[email protected]>
  • Loading branch information
acktsap committed Apr 14, 2024
1 parent eea9879 commit af78ec4
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
package com.navercorp.spring.batch.plus.sample.job.configuration.observationconvention

import com.navercorp.spring.batch.plus.kotlin.configuration.BatchDsl
import io.micrometer.observation.ObservationRegistry
import org.springframework.batch.core.Job
import org.springframework.batch.core.observability.DefaultBatchJobObservationConvention
import org.springframework.batch.repeat.RepeatStatus
Expand All @@ -37,7 +36,6 @@ open class TestJobConfig(
open fun testJob(): Job = batch {
job("testJob") {
observationConvention(DefaultBatchJobObservationConvention())
observationRegistry(ObservationRegistry.create())
step("testStep") {
tasklet({ _, _ -> RepeatStatus.FINISHED }, transactionManager)
}
Expand Down

0 comments on commit af78ec4

Please sign in to comment.