Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Agent]Add a ProtectiveShieldMatcher to prevent match exception. #706

Merged
merged 2 commits into from Dec 25, 2017

Conversation

wu-sheng
Copy link
Member

@wu-sheng wu-sheng commented Dec 25, 2017

In some cases, some frameworks and libraries use some binary codes tech too. From the community feedback, some of
them have compatible issues with byte-buddy core, which trigger "Can't resolve type description" exception.

So I build this protective shield by a nested matcher. When the origin matcher(s) can't resolve the type, the
SkyWalking agent ignores this types.

Notice: this ignore mechanism may miss some instrumentations, but at most cases, it's same. If missing happens, please pay attention to the WARNING logs.

FYI @peng-yongsheng @ascrutae

This related to #578 #555 , from the Raphew's help: raphw/byte-buddy#373

@wu-sheng wu-sheng added this to the 5.0.0-alpha milestone Dec 25, 2017
@wu-sheng wu-sheng self-assigned this Dec 25, 2017
This was referenced Dec 25, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 22.988% when pulling 8a97aad on fix/cant-resolve-types into 720f404 on master.

@wu-sheng wu-sheng changed the title Add a ProtectiveShieldMatcher to prevent match exception. [Agent]Add a ProtectiveShieldMatcher to prevent match exception. Dec 25, 2017
@ascrutae
Copy link
Member

This function is tested. Here is the auto_test report

NOTE: Ignore the failure cases. because those cases are not perfect and the follow-up will improve it

Copy link
Member

@ascrutae ascrutae left a comment

Choose a reason for hiding this comment

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

LGTM

@ascrutae ascrutae merged commit 41e5160 into master Dec 25, 2017
@wu-sheng wu-sheng deleted the fix/cant-resolve-types branch December 25, 2017 09:15
@dagmom dagmom mentioned this pull request Jun 14, 2020
3 tasks
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.

None yet

3 participants