Fix style
This commit is contained in:
parent
a44b59bb14
commit
99e4e52600
|
@ -26,7 +26,7 @@ import net.bytebuddy.matcher.ElementMatcher;
|
||||||
@AutoService(Instrumenter.class)
|
@AutoService(Instrumenter.class)
|
||||||
public class HystrixCommandInstrumentation extends Instrumenter.Default {
|
public class HystrixCommandInstrumentation extends Instrumenter.Default {
|
||||||
|
|
||||||
private static final String operationName = "hystrix.cmd";
|
private static final String OPERATION_NAME = "hystrix.cmd";
|
||||||
|
|
||||||
public HystrixCommandInstrumentation() {
|
public HystrixCommandInstrumentation() {
|
||||||
super("hystrix");
|
super("hystrix");
|
||||||
|
@ -63,7 +63,7 @@ public class HystrixCommandInstrumentation extends Instrumenter.Default {
|
||||||
final String resourceName = className + "." + method.getName();
|
final String resourceName = className + "." + method.getName();
|
||||||
|
|
||||||
return GlobalTracer.get()
|
return GlobalTracer.get()
|
||||||
.buildSpan(operationName)
|
.buildSpan(OPERATION_NAME)
|
||||||
.withTag(DDTags.RESOURCE_NAME, resourceName)
|
.withTag(DDTags.RESOURCE_NAME, resourceName)
|
||||||
.withTag(Tags.COMPONENT.getKey(), "hystrix")
|
.withTag(Tags.COMPONENT.getKey(), "hystrix")
|
||||||
.startActive(true);
|
.startActive(true);
|
||||||
|
|
Loading…
Reference in New Issue