Decorators use the default service name if unassigned

This commit is contained in:
renaudboutet 2017-05-15 16:51:34 -04:00
parent 83001f1c9f
commit d2489d3e4c
2 changed files with 0 additions and 4 deletions

View File

@ -31,8 +31,6 @@ public class DBServiceDecorator implements DDSpanContextDecorator {
if(tag.equals(Tags.COMPONENT.getKey()) && value.equals(componentName)){
if(desiredServiceName != null){
context.setServiceName(desiredServiceName);
}else{
context.setServiceName(componentName);
}
//Assign span type to DB

View File

@ -35,8 +35,6 @@ public class HTTPServiceDecorator implements DDSpanContextDecorator {
if(tag.equals(Tags.COMPONENT.getKey()) && value.equals(componentName)){
if(desiredServiceName != null){
context.setServiceName(desiredServiceName);
}else{
context.setServiceName(componentName);
}
//Assign span type to WEB