-
Notifications
You must be signed in to change notification settings - Fork 658
Add mongoDB plugin report db instance info #618
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
Conversation
Please format the PR, this seems no clear description. |
I have enriched the description information, please check the PR |
@@ -43,6 +44,13 @@ public static void createExitSpan(String executeMethod, String remotePeer, Objec | |||
Tags.DB_TYPE.set(span, MongoConstants.DB_TYPE); | |||
SpanLayer.asDB(span); | |||
|
|||
if (operation instanceof EnhancedInstance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the case not instanceof
? Or this is just an extra check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example,'CommitTransactionOperation' cannot obtain the corresponding database info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For others reading this PR, the context happens at #597 |
If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes apache/skywalking#11252.
Update the CHANGES log.