FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

support mongo ``db.instance`` tag、``db.collection`` tag and ``AggregateOperation`` span in mongodb-3.x-plugin and mongodb-4.x-plugin by youjie23 · Pull Request #728 · apache/skywalking-java · GitHub

support mongo db.instance tag、db.collection tag and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin - #728

Merged
wu-sheng merged 12 commits into
apache:mainfrom
youjie23:feature-mongo-support-fix
Nov 28, 2024
Merged

support mongo db.instance tag、db.collection tag and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin#728
wu-sheng merged 12 commits into
apache:mainfrom
youjie23:feature-mongo-support-fix

Conversation

youjie23 commented Nov 22, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

support mongo db.instance tag、db.collection tag and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin

Copy link
Copy Markdown
Member

Please update the test scenario about mongodb. I need to see how the pipeline data looks like in the expectation file.

wu-sheng added this to the 9.4.0 milestone Nov 22, 2024

Copy link
Copy Markdown
Member

And your new changes break the plugin e2e tests. Please fix them.

Copy link
Copy Markdown
Contributor Author

And your new changes break the plugin e2e tests. Please fix them.

The Dead Link Checker / CheckDeadLinks ? :
[✖] https://research.google.com/pubs/pub36356.html → Status: 404

The Java-Plugin-Development-Guide.md is not in the changed files of this PR.
I'm not sure if changing it is the correct approach.
Should I ?

Copy link
Copy Markdown
Member

You don't need to worry that.

Copy link
Copy Markdown
Member

Your new testing cases seem not working well, need some fix.

youjie23 changed the title support mongo db.instance tag and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin support mongo db.instance tag、db.collection and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin Nov 24, 2024
Comment on lines +74 to +89
if ("namespace".equals(field.getName())) {
namespaceField = field;
Field.setAccessible(new Field[]{field}, true);
}
if ("wrapped".equals(field.getName())) {
wrappedField = field;
Field.setAccessible(new Field[]{field}, true);
}
if ("databaseName".equals(field.getName())) {
databaseField = field;
Field.setAccessible(new Field[]{field}, true);
}
if ("collectionName".equals(field.getName())) {
collectionField = field;
Field.setAccessible(new Field[]{field}, true);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could you explain this? The more reflect we used, the more performance we impacted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you for the review. I have made the changes using SkyWalkingDynamicField based on your feedback.

Copy link
Copy Markdown
Member

Have you verified locally? It costs a lot to run CI repeatedly.

Copy link
Copy Markdown
Contributor Author

Have you verified locally? It costs a lot to run CI repeatedly.

Sorry for the trouble this problem has caused.
Actually,I have run the mongodb-3.x-scenario and mongodb-4.x-scenario projects after packaging the plugins with unit tests, and checked the produced data in the UI. What bothers me is that I often make silly mistakes, such as whitespace formatting errors in JSON strings, when manually editing the expectedData.yaml files.
Is manually editing the expectedData.yaml files an incorrect approach? Are there any other convenient approaches to avoid these problems or to detect them locally? If you could provide relevant operational documentation for reference, I would be very grateful.

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

Meanwhile, you missed the PR template, which guides you to check need-to-update document. In this case, you didn't update changes.md file

youjie23 changed the title support mongo db.instance tag、db.collection and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin support mongo db.instance tag、db.collection tag and AggregateOperation span in mongodb-3.x-plugin and mongodb-4.x-plugin Nov 27, 2024

Copy link
Copy Markdown
Contributor Author

Meanwhile, you missed the PR template, which guides you to check need-to-update document. In this case, you didn't update changes.md file

Thank you for the review. Fixed that.

wu-sheng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM.

wu-sheng merged commit fc86413 into apache:main Nov 28, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL