Tracer Resolver decorators instanciation bugfix
This commit is contained in:
parent
d2489d3e4c
commit
eaf6bbee45
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue