Skip to content

Conversation

@jackshirazi
Copy link
Contributor

trying out things for spring web mvc

@github-actions
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

public ElementMatcher<? super TypeDescription> getTypeMatcher() {
return nameStartsWith("org.springframework.web.servlet")
.and(hasSuperType(named("org.springframework.web.servlet.HandlerAdapter")))
return hasSuperType(named("org.springframework.web.servlet.HandlerAdapter"))
Copy link
Member

Choose a reason for hiding this comment

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

Doing that will make the matching expensive as all potential instrumentation candidates will need to have all their super type chain resolved. We could however maybe use getTypeMatcherPreFilter to keep an heuristic on name while not impacting performance too much.

The total matching time is shown in agent debug logs when the agent stops, so that helps to give an idea about the efficiency of the heuristic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants