Skip to content

Conversation

hxd123456
Copy link
Contributor

@hxd123456 hxd123456 commented Oct 7, 2023

If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes apache/skywalking#11252.
Update the CHANGES log.

@wu-sheng
Copy link
Member

wu-sheng commented Oct 7, 2023

Please format the PR, this seems no clear description.

@hxd123456 hxd123456 changed the title issue 11252 Add mongoDB plugin report db instance info Oct 8, 2023
@hxd123456
Copy link
Contributor Author

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) {
Copy link
Member

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?

Copy link
Contributor Author

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

@wu-sheng wu-sheng added this to the 9.1.0 milestone Oct 8, 2023
@wu-sheng wu-sheng added enhancement New feature or request plugin labels Oct 8, 2023
Copy link
Member

@wu-sheng wu-sheng left a comment

Choose a reason for hiding this comment

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

LGTM

@wu-sheng
Copy link
Member

wu-sheng commented Oct 8, 2023

For others reading this PR, the context happens at #597

@wu-sheng wu-sheng merged commit 087475e into apache:main Oct 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Java Agent MongoDb support report db_instance
2 participants