By default report the db.type instead of the component for jdbc and databases
MODIFY
dd-trace/src/main/java/com/datadoghq/trace/integration/DBComponent.java
dd-trace/src/main/java/com/datadoghq/trace/integration/DBComponent.java
@@ -12,12 +12,12 @@ public class DBComponent extends DDSpanContextDecorator {
public DBComponent() {
super();
- this.setMatchingTag(Tags.COMPONENT.getKey());
+ this.setMatchingTag(Tags.DB_TYPE.getKey());
this.setSetTag(DDTags.SERVICE_NAME);
}
@Override
- public boolean afterSetTag(DDSpanContext context, String tag, Object value) {
+ public boolean afterSetTag(final DDSpanContext context, final String tag, final Object value) {
//Assign service name
if (super.afterSetTag(context, tag, value)) {
//Assign span type to DB

MODIFY
dd-trace/src/main/resources/dd-trace-decorators.yaml
dd-trace/src/main/resources/dd-trace-decorators.yaml
@@ -5,17 +5,6 @@ decorators:
matchingValue: java-okhttp
setValue: http-client
- type: DBComponent
- matchingValue: java-mongo
- setValue: mongo
- - type: DBComponent
- matchingValue: java-jdbc
- setValue: jdbc
- - type: DBComponent
- matchingValue: java-cassandra
- setValue: cassandra
- - type: DBComponent
- matchingValue: java-elasticsearch
- setValue: elasticsearch
- type: HTTPComponent
matchingValue: java-aws-sdk
setValue: aws-client

By default report the db.type instead of the component for jdbc and databases