Pinpoint is an open source APM (Application Performance Management) tool for large-scale distributed systems written in Java.
Hello community.
I have java app that uses cassandra database to store some data interacting with db is realized using cassandra-driver-core-3.4.0 that is support in Pinpoint 1.8.5.
I have installed Pinpoint 1.8.5 in basic configuration.
And when i sending requests to app i can't see whole map and in call tree db mapped like: UNKNOWN_DB(unknown)
I have tried to specify profiler.entrypoint in agent configuration, but it's not helped.
And when i set profiler.entrypoint=com.datastax.driver.core.AbstractSession.execute, then UNKNOWN_DB(unknown) was changed to INTERNAL_METHOD in call tree.
And that's all. Destination still visualizing like unknown.
Maybe someone could point me in right direction or suggest something? Will be very appreciate for any help.
Thank you.
Hi @Xylus . For example, to interact with cassandra(establish connection, make some queries) we use next methods from com.datastax.driver.core:
Cluster.Builder clusterBuilder = Cluster.builder()
.addContactPoints(cassandraHosts).withPort(cassandraPort)
.withLoadBalancingPolicy(new RoundRobinPolicy())
.withPoolingOptions(getPoolingOptions());
Cluster cluster = clusterBuilder.build();
Session session = cluster.connect();
PreparedStatement pstmt = session.prepare(cql);
if(isReadQuery)
pstmt.setConsistencyLevel(readConsistencyLevel);
else
pstmt.setConsistencyLevel(writeConsistencyLevel);
BoundStatement bstmt = pstmt.bind();
ResultSet resultSet = session.execute(bstmt);
List<Row> result = resultSet.all();