AWSXRayServletFilter with Jakarta EE 10 / SpringBoot 3.x

0

We have an existing Java 17 app running SpringBoot 2.7.9 and are upgrading to SpringBoot 3.0.3
Spring Boot 3 uses the Jakarta EE 10 - as a result the javax.servlet.Filter is no longer available (instead its jakarta.servlet.Filter)
ref: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#jakarta-ee
Given the above, we can no longer trace incoming requests - https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-filters.html Are there alternatives are available to resolve this? (eg updated AWS SDK, alternative filter suggestions?)

-- updated --
I see in the github repo that a Jakarta compatible servlet has been merged into the master branch, so I guess this is just pending a new release
ref : https://github.com/aws/aws-xray-sdk-java/pull/372

  • Would be appreciated and good to know when is the planned release so teams could plan accordingly.

已提问 1 年前1228 查看次数
1 回答
0

Hello,

Thank you for providing your valuable feedback on the service. The service team is aware of the issue regarding AWSXRayServletFilter/javax.servlet.Filter with respect to the new version of Spring and is working on providing a fix.

While I am unable to comment on when the support for jakarta.servlet.Filter may get released, I kindly suggest you to monitor the GitHub issue https://github.com/aws/aws-xray-sdk-java/issues/364 for further updates. Also, I request you to keep an eye on our Whats' New and Blog pages for any new feature announcements. As an alternative, kindly consider migrating to OpenTelemetry.

AWS
支持工程师
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则