-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument spring-batch #1843
Instrument spring-batch #1843
Conversation
My personal opinion: We should do this in much smaller chunks. Keep PRs to a few hundred lines. It's simply not possible (for me) to do an effective review of 1300+ lines of code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it simplify things to instrument Job.execute()
and Step.execute()
directly instead of the registration and use of execution listeners? I'm not sure what the equivalent for Chunk would be..
...java/io/opentelemetry/javaagent/instrumentation/spring/batch/chunk/ChunkExecutionTracer.java
Outdated
Show resolved
Hide resolved
...ain/java/io/opentelemetry/javaagent/instrumentation/spring/batch/job/JobExecutionTracer.java
Outdated
Show resolved
Hide resolved
...n/java/io/opentelemetry/javaagent/instrumentation/spring/batch/step/StepExecutionTracer.java
Outdated
Show resolved
Hide resolved
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/config/Config.java
Show resolved
Hide resolved
...java/io/opentelemetry/javaagent/instrumentation/spring/batch/chunk/ChunkExecutionTracer.java
Outdated
Show resolved
Hide resolved
...ain/java/io/opentelemetry/javaagent/instrumentation/spring/batch/job/JobExecutionTracer.java
Outdated
Show resolved
Hide resolved
...n/java/io/opentelemetry/javaagent/instrumentation/spring/batch/step/StepExecutionTracer.java
Outdated
Show resolved
Hide resolved
...o/opentelemetry/javaagent/instrumentation/spring/batch/SpringBatchInstrumentationModule.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might help with @jkwatson's suggestion of splitting into steps (pun intended! :-) Would it help to start from library instrumentation? It reduces load to only be looking at Spring APIs first, and separately reviewing auto-instrumentation tricks.
That was my first approach actually 😅 But unfortunately I need to use
👍
There's no equivalent for Chunk unfortunately. For Job and Step I could instrument |
ea534ad
to
5ec3e87
Compare
5ec3e87
to
b225379
Compare
instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/config/Config.java
Outdated
Show resolved
Hide resolved
...o/opentelemetry/javaagent/instrumentation/spring/batch/SpringBatchInstrumentationConfig.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/javaagent/instrumentation/spring/batch/job/GetObjectAdvice.java
Outdated
Show resolved
Hide resolved
...pentelemetry/javaagent/instrumentation/spring/batch/job/JobBuilderHelperInstrumentation.java
Outdated
Show resolved
Hide resolved
.../opentelemetry/javaagent/instrumentation/spring/batch/job/JobFactoryBeanInstrumentation.java
Outdated
Show resolved
Hide resolved
...c/main/java/io/opentelemetry/javaagent/instrumentation/spring/batch/job/GetObjectAdvice.java
Outdated
Show resolved
Hide resolved
...pentelemetry/javaagent/instrumentation/spring/batch/job/JobBuilderHelperInstrumentation.java
Outdated
Show resolved
Hide resolved
...pentelemetry/javaagent/instrumentation/spring/batch/job/JobBuilderHelperInstrumentation.java
Outdated
Show resolved
Hide resolved
...pentelemetry/javaagent/instrumentation/spring/batch/job/JobBuilderHelperInstrumentation.java
Show resolved
Hide resolved
.../opentelemetry/javaagent/instrumentation/spring/batch/job/JobFactoryBeanInstrumentation.java
Outdated
Show resolved
Hide resolved
.../opentelemetry/javaagent/instrumentation/spring/batch/step/TracingStepExecutionListener.java
Show resolved
Hide resolved
...o/opentelemetry/javaagent/instrumentation/spring/batch/SpringBatchInstrumentationModule.java
Show resolved
Hide resolved
...io/opentelemetry/javaagent/instrumentation/spring/batch/job/TracingJobExecutionListener.java
Outdated
Show resolved
Hide resolved
b524ef5
to
74e99c7
Compare
.../opentelemetry/javaagent/instrumentation/spring/batch/job/JobFactoryBeanInstrumentation.java
Show resolved
Hide resolved
...metry/javaagent/instrumentation/spring/batch/job/JobParserJobFactoryBeanInstrumentation.java
Show resolved
Hide resolved
...io/opentelemetry/javaagent/instrumentation/spring/batch/job/TracingJobExecutionListener.java
Show resolved
Hide resolved
.../opentelemetry/javaagent/instrumentation/spring/batch/step/TracingStepExecutionListener.java
Show resolved
Hide resolved
Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
* Instrument spring-batch: job & step * Instrument spring-batch: job & step - code review comments * Instrument spring-batch: job & step - code review comments * Instrument spring-batch: job & step - code review comments * spotless * Apply suggestions from code review Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com> * Instrument spring-batch: job & step - code review comments * spotless Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
Related to #1842
This PR introduces just a "skeleton" instrumentation that does not log any span attributes, just creates the spans. Span names may change once a spec PR emerges.