Skip to content

Commit

Permalink
Setup for Cassandra instrumentation (#69)
Browse files Browse the repository at this point in the history
* Initial setup for cassandra

* Event generation for Cassandra 3 & 4

---------

Co-authored-by: lovesh-ap <[email protected]>
  • Loading branch information
IshikaDawda and lovesh-ap authored Oct 9, 2023
1 parent b1bed4b commit 65d6fed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,20 @@ public Object call() throws Exception {
break;
}
case NOSQL_DB_COMMAND:
NoSQLOperation noSQLOperationalBean = (NoSQLOperation) operation;
try {
eventBean = prepareNoSQLEvent(eventBean, noSQLOperationalBean);
} catch (Throwable e) {
return null;
if(operation instanceof SQLOperation) {
eventBean = prepareSQLDbCommandEvent((SQLOperation) operation, eventBean);
break;
} else if (operation instanceof BatchSQLOperation) {
eventBean = prepareSQLDbCommandEvent((BatchSQLOperation) operation, eventBean);
break;
} else if (operation instanceof NoSQLOperation) {
try {
eventBean = prepareNoSQLEvent(eventBean, (NoSQLOperation) operation);
} catch (Throwable e) {
return null;
}
break;
}
break;

case DYNAMO_DB_COMMAND:
DynamoDBOperation dynamoDBOperation = (DynamoDBOperation) operation;
Expand Down
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ include 'instrumentation:jdbc-inet-merlia'
include 'instrumentation:jdbc-inet-oranxo'
include 'instrumentation:jdbc-sybase-6'
include 'instrumentation:low-priority-instrumentation'
include 'instrumentation:cassandra-datastax-3'
include 'instrumentation:cassandra-datastax-4'
include 'instrumentation:commons-jxpath'
//include 'instrumentation:grails-1.3'
//include 'instrumentation:grails-2.0'
Expand Down

0 comments on commit 65d6fed

Please sign in to comment.