Repository navigation
feat(micronaut): add Micronaut 4 and 5 support - #70
Merged
Merged
Conversation
reactor-core comes with Micronaut's Netty server and HTTP client, of the app's own version: compileOnly. micronaut-reactor is no longer forced on every app (Micronaut 5 runs micronaut-reactor 4.x; a Maven build without the platform BOM got 3.9.1). A reactive app has it already, and it carries the trace across Reactor's threads.
… when it's off As the Spring and Ktor integrations do: Tracepanel.start gets the packages Micronaut.run(Application.class) names, so its generated classes aren't the app's frames; Log4j 2 records are recorded beside Logback's; outside a dev environment it says once why it's off. The classes say what they are, as the other modules' do.
…ied names in code
Micronaut takes the response and cancels the rest of the filter chain: every answered request was recorded failed (status error with a 200). A cancel fails the trace only before its answer. The tests now check the status of an answered request.
Both wrap each DataSource as it is made, in no set order. Over Micronaut Data's contextual proxy, its transaction manager held one connection and the proxy looked for another: a @transactional method failed with NoConnectionException, now and then. The SDK's listener goes first, so it wraps the pool. A suite on Micronaut Data's classpath (testMicronautData) checks a @transactional method: one committed transaction holding its statements.
…app's $BookController$Definition$Exec sits in the app's package with no line to point at: an error's nearest app frame was it, not the controller's method.
The spans as kind and what each is, the logs, the error's type, message and nearest app frame, and the call's span named as the parent of the trace it reached; explicit imports.
…e them Install and what it records in the Spring Boot and Ktor sections' shape; no link to a private repository, no word of it being unpublished (the release names its version); the changelog's entry in three lines.
Without a config Logback logs at DEBUG: on Micronaut 5 the HTTP client's own DEBUG record joined the trace's logs. The Micronaut 5 suite reads the same test resources.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add automatic request tracing for Micronaut 4.10 and 5 applications.
flowchart LR Request --> ServerFilter[Micronaut server filter] ServerFilter --> Controller Controller --> JDBC[Wrapped DataSource] Controller --> Client[Declarative HTTP client] JDBC --> Trace[Tracepanel trace] Client --> Trace Trace --> Console[Local console]