change span.type value
MODIFY
dd-java-agent/src/main/java/com/datadoghq/trace/agent/integration/MongoHelper.java
dd-java-agent/src/main/java/com/datadoghq/trace/agent/integration/MongoHelper.java
@@ -60,6 +60,7 @@ public class MongoHelper extends DDAgentTracingHelper<MongoClientOptions.Builder
// tag with the quantized version of the Mongo command
span.setTag(DDTags.RESOURCE_NAME, mongoCmd);
span.setTag(Tags.DB_STATEMENT.getKey(), mongoCmd);
+ span.setTag(Tags.SPAN_KIND.getKey(), "mongodb");
} catch (final Throwable e) {
log.warn("Couldn't decorate the mongo query: " + e.getMessage(), e);
}

MODIFY
dd-trace/src/main/java/com/datadoghq/trace/integration/DBTypeDecorator.java
dd-trace/src/main/java/com/datadoghq/trace/integration/DBTypeDecorator.java
@@ -24,6 +24,7 @@ public class DBTypeDecorator extends AbstractDecorator {
//Assign span type to DB
// Special case: Mongo, set to mongodb
if ("mongo".equals(value)) {
+ //Todo: not sure it's used cos already in the agent mongo helper
context.setSpanType("mongodb");
} else {
context.setSpanType("sql");

change span.type value