Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Dec 20, 2024

Copy paste of Struts 2.3, adjusted for servlet 5 (jakarta) and opensymphony classes moved under struts package name

public ElementMatcher<ClassLoader> classLoaderOptimization() {
return hasClassesNamed("com.opensymphony.xwork2.ActionInvocation");
return hasClassesNamed("com.opensymphony.xwork2.ActionInvocation")
.and(not(hasClassesNamed("org.apache.struts2.ActionInvocation")));
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure why this extra condition is necessary. Since the interface is in different package for struts7 it should clash with the instrumentation for older versions. I'll push to the pr and remove this check if it is needed then please add it back. I'll also move struts 2.3 and 7 instrumentation classes to different packages.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks

@laurit laurit marked this pull request as ready for review December 20, 2024 12:08
@laurit laurit requested a review from a team as a code owner December 20, 2024 12:08
@github-actions github-actions bot requested a review from theletterf December 20, 2024 12:15
@laurit laurit merged commit fa32671 into open-telemetry:main Dec 20, 2024
55 of 56 checks passed
@trask trask deleted the struts7 branch December 20, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants