Better span names for cassandra
ADD
instrumentation/cassandra-3.0/.toDelete
instrumentation/cassandra-3.0/.toDelete
MODIFY
instrumentation/cassandra-3.0/src/main/java/io/opentelemetry/auto/instrumentation/datastax/cassandra/TracingSession.java
instrumentation/cassandra-3.0/src/main/java/io/opentelemetry/auto/instrumentation/datastax/cassandra/TracingSession.java
@@ -260,7 +260,7 @@ public class TracingSession implements Session {
}
private Span startSpan(final String query) {
- final Span span = TRACER.spanBuilder("cassandra.query").setSpanKind(CLIENT).startSpan();
+ final Span span = TRACER.spanBuilder(query).setSpanKind(CLIENT).startSpan();
DECORATE.afterStart(span);
DECORATE.onConnection(span, session);
DECORATE.onStatement(span, query);

MODIFY
instrumentation/cassandra-3.0/src/test/groovy/CassandraClientTest.groovy
instrumentation/cassandra-3.0/src/test/groovy/CassandraClientTest.groovy
@@ -125,7 +125,7 @@ class CassandraClientTest extends AgentTestRunner {
def cassandraSpan(TraceAssert trace, int index, String statement, String keyspace, boolean renameService, Object parentSpan = null, Throwable exception = null) {
trace.span(index) {
- operationName "cassandra.query"
+ operationName statement
spanKind CLIENT
if (parentSpan == null) {
parent()

Better span names for cassandra (#237)