Tracer Resolver decorators instanciation bugfix

This commit is contained in:
renaudboutet 2017-05-15 16:57:43 -04:00
parent d2489d3e4c
commit eaf6bbee45
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class DDTracerResolver extends TracerResolver {
if (map.get("type") != null) {
DDSpanContextDecorator decorator = null;
String componentName = (String) map.get("componentName");
String desiredServiceName = map.get("desiredServiceName") != null ? (String) map.get("desiredServiceName") : (String) map.get("componentName");
String desiredServiceName = (String) map.get("desiredServiceName");
if (map.get("type").equals(HTTPServiceDecorator.class.getSimpleName())) {
decorator = new HTTPServiceDecorator(componentName, desiredServiceName);