Spymemcached: use cache span type
MODIFY
dd-java-agent/instrumentation/spymemcached-2.12/src/main/java/datadog/trace/instrumentation/spymemcached/CompletionListener.java
dd-java-agent/instrumentation/spymemcached-2.12/src/main/java/datadog/trace/instrumentation/spymemcached/CompletionListener.java
@@ -24,7 +24,7 @@ public abstract class CompletionListener<T> {
Unfortunately nondeterministic interaction between SpanTypeDecorator and DBTypeDecorator
pretty much forces this to be "sql".
*/
- static final String SPAN_TYPE = "sql";
+ static final String SPAN_TYPE = "cache";
static final String COMPONENT_NAME = "java-spymemcached";
static final String DB_TYPE = "memcached";
static final String DB_COMMAND_CANCELLED = "db.command.cancelled";

MODIFY
dd-trace-ot/src/main/java/datadog/opentracing/decorators/DBTypeDecorator.java
dd-trace-ot/src/main/java/datadog/opentracing/decorators/DBTypeDecorator.java
@@ -28,6 +28,8 @@ public class DBTypeDecorator extends AbstractDecorator {
context.setSpanType("mongodb");
} else if ("cassandra".equals(value)) {
context.setSpanType("cassandra");
+ } else if ("memcached".equals(value)) {
+ context.setSpanType("cache");
} else {
context.setSpanType("sql");
}

Spymemcached: use cache span type