Skip to content

Review fixes for internal-application-logger:javaagent#17370

Open
otelbot[bot] wants to merge 3 commits intomainfrom
otelbot/code-review-internal-application-logger-javaagent
Open

Review fixes for internal-application-logger:javaagent#17370
otelbot[bot] wants to merge 3 commits intomainfrom
otelbot/code-review-internal-application-logger-javaagent

Conversation

@otelbot
Copy link
Copy Markdown
Contributor

@otelbot otelbot bot commented Apr 1, 2026

Summary

Reviewed instrumentation/internal/internal-application-logger/javaagent, applied 1 safe fix in tests, and validated with :instrumentation:internal:internal-application-logger:javaagent:check, :check -PtestLatestDeps=true, :muzzle, and ./gradlew spotlessApply.

Applied Changes

[Testing]

File: ApplicationLoggerInstrumentationTest.java:75
Change: Added assertions that the forked subprocess exits within the timeout and returns exit code 0, forcibly destroying it first if it hangs.
Reason: The review checklist prioritizes engineering correctness and reliability; a test that only reads subprocess output without asserting successful process completion can pass despite a failed or stuck child process.

Unresolved Items

File: build.gradle.kts
Reason: Did not keep assertInverse.set(true) on the spring-boot muzzle pass block. Although gradle-conventions.md prefers assertInverse for bounded ranges, :instrumentation:internal:internal-application-logger:javaagent:muzzle showed the instrumentation still passes on Spring Boot 1.0.x/1.1.x, so adding the inverse assertion is not a safe fix without a broader muzzle/version-range decision.


Download code review diagnostics

Automated code review of instrumentation/internal/internal-application-logger/javaagent.
@otelbot otelbot bot requested a review from a team as a code owner April 1, 2026 09:15
});

process.waitFor(10, SECONDS);
boolean exited = process.waitFor(10, SECONDS);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we want this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just the verbosity? killing potentially hung test processes seems nice

trask added 2 commits April 1, 2026 08:56
…/src/test/java/io/opentelemetry/javaagent/instrumentation/internal/logging/ApplicationLoggerInstrumentationTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants