-
Notifications
You must be signed in to change notification settings - Fork 606
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
support mongo db.instance
tag、db.collection
tag and AggregateOperation
span in mongodb-3.x-plugin and mongodb-4.x-plugin
#728
Conversation
Please update the test scenario about mongodb. I need to see how the pipeline data looks like in the expectation file. |
And your new changes break the plugin e2e tests. Please fix them. |
The Dead Link Checker / CheckDeadLinks ? : The |
You don't need to worry that. |
Your new testing cases seem not working well, need some fix. |
db.instance
tag and AggregateOperation
span in mongodb-3.x-plugin and mongodb-4.x-plugindb.instance
tag、db.collection and AggregateOperation
span in mongodb-3.x-plugin and mongodb-4.x-plugin
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); | ||
} |
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.
Could you explain this? The more reflect we used, the more performance we impacted.
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.
Thank you for the review. I have made the changes using SkyWalkingDynamicField based on your feedback.
…test scenarios and remove reflect
Have you verified locally? It costs a lot to run CI repeatedly. |
Sorry for the trouble this problem has caused. |
UT is just for testing codes you wrote, but can't verify the runtime with the real library codes. Plugin contribution docs step <5> includes how to run this locally, https://skywalking.apache.org/docs/skywalking-java/latest/en/setup/service-agent/java-agent/java-plugin-development-guide/#contribute-plugins-to-the-apache-skywalking-repository |
...lking/apm/plugin/mongodb/v3/interceptor/operation/OperationDatabaseConstructInterceptor.java
Show resolved
Hide resolved
...ng/apm/plugin/mongodb/v3/interceptor/operation/WrappedMapReduceReadOperationInterceptor.java
Outdated
Show resolved
Hide resolved
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 |
db.instance
tag、db.collection and AggregateOperation
span in mongodb-3.x-plugin and mongodb-4.x-plugindb.instance
tag、db.collection
tag and AggregateOperation
span in mongodb-3.x-plugin and mongodb-4.x-plugin
…lking-java into feature-mongo-support-fix
Thank you for the review. Fixed that. |
...in/src/main/java/org/apache/skywalking/apm/plugin/mongodb/v4/support/MongoNamespaceInfo.java
Outdated
Show resolved
Hide resolved
...in/src/main/java/org/apache/skywalking/apm/plugin/mongodb/v4/support/MongoNamespaceInfo.java
Show resolved
Hide resolved
...in/src/main/java/org/apache/skywalking/apm/plugin/mongodb/v4/support/MongoNamespaceInfo.java
Outdated
Show resolved
Hide resolved
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.
support mongo
db.instance
tag、db.collection
tag andAggregateOperation
span in mongodb-3.x-plugin and mongodb-4.x-plugin