Skip to content

ServerRequestContext.with change with ServerRequestContext.currentRequest in micronaut 4 #10681

Answered by dstepanov
ethanhere asked this question in Q&A
Discussion options

You must be logged in to vote

You can do PropagatedContext.getOrEmpty().plus(new ServerHttpRequestContext(request)).propagate() and call close to cleanup. This might change in the next major version.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@sdelamo
Comment options

@dstepanov
Comment options

@ethanhere
Comment options

@dstepanov
Comment options

Answer selected by ethanhere
@ethanhere
Comment options

@dstepanov
Comment options

@ethanhere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants