-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cassandra-Datastax 3 instrumentation #70
Conversation
|
||
@Weave(type = MatchType.ExactClass, originalName = "com.datastax.driver.core.SessionManager") | ||
abstract class SessionManager_Instrumentation { | ||
final Cluster cluster = Weaver.callOriginal(); |
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.
Please use getter instead of class member
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.
Fixed in commit
private final Object[] values = Weaver.callOriginal(); | ||
private final Map<String, Object> namedValues = Weaver.callOriginal(); | ||
@WeaveAllConstructors | ||
public SimpleStatement_Instrumentation() { |
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.
Please weave all constructors separately and do not use weaving of member variables
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.
Fixed in commit
SQLOperation cqlOperation = new SQLOperation(this.getClass().getName(), CassandraUtils.METHOD_EXECUTE_ASYNC); | ||
cqlOperation.setQuery(query); | ||
cqlOperation.setCaseType(VulnerabilityCaseType.NOSQL_DB_COMMAND); | ||
cqlOperation.setDbName(CassandraUtils.EVENT_CATEGORY); |
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.
Discuss with SE team what are they expecting in DB name
Instrumentation Cassandra Datastax 3