Decorators use the default service name if unassigned
This commit is contained in:
parent
83001f1c9f
commit
d2489d3e4c
|
@ -31,8 +31,6 @@ public class DBServiceDecorator implements DDSpanContextDecorator {
|
||||||
if(tag.equals(Tags.COMPONENT.getKey()) && value.equals(componentName)){
|
if(tag.equals(Tags.COMPONENT.getKey()) && value.equals(componentName)){
|
||||||
if(desiredServiceName != null){
|
if(desiredServiceName != null){
|
||||||
context.setServiceName(desiredServiceName);
|
context.setServiceName(desiredServiceName);
|
||||||
}else{
|
|
||||||
context.setServiceName(componentName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Assign span type to DB
|
//Assign span type to DB
|
||||||
|
|
|
@ -35,8 +35,6 @@ public class HTTPServiceDecorator implements DDSpanContextDecorator {
|
||||||
if(tag.equals(Tags.COMPONENT.getKey()) && value.equals(componentName)){
|
if(tag.equals(Tags.COMPONENT.getKey()) && value.equals(componentName)){
|
||||||
if(desiredServiceName != null){
|
if(desiredServiceName != null){
|
||||||
context.setServiceName(desiredServiceName);
|
context.setServiceName(desiredServiceName);
|
||||||
}else{
|
|
||||||
context.setServiceName(componentName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Assign span type to WEB
|
//Assign span type to WEB
|
||||||
|
|
Loading…
Reference in New Issue