fix(webflux): fix NoSuchMethodError when using spring framework 7 with webflux#4515
fix(webflux): fix NoSuchMethodError when using spring framework 7 with webflux#4515jihad-bouhaiji wants to merge 4 commits into
Conversation
🤖 GitHub commentsJust comment with:
|
SylvainJuge
left a comment
There was a problem hiding this comment.
Can you try to add an explicit test that allows to reproduce it ? Is the issue happening with the version that is being used for compilation ? if yes, then a simple unit test should be enough. If not, then do you have a sample application that allows to reproduce the issue ?
|
I added a module I do have a question. |
ff14da8 to
4fb29aa
Compare
I think this is OK here, having distinct implementations for versions 5,6 and 7 would probably be over-complication here. |
What does this PR do?
This PR fixes an issue with the experimental support for Spring framework 7 that was added PR. When running the agent, it will throw a NoSuchMethodError exception due to the
HttpHeaders.entrySetmethod. This is due to HttpHeaders no longer implementing the MultiValueMap contract.I have changed the copying of header to only use API's that are still available across version 5, 6 and 7.
The test
co.elastic.apm.agent.springwebflux.AbstractServerInstrumentationTest#dispatchHellocovers this fix.Checklist