Fix style

This commit is contained in:
Will Gittoes 2019-02-01 09:29:05 +11:00
parent a44b59bb14
commit 99e4e52600
No known key found for this signature in database
GPG Key ID: 521026A02DB0BB42
1 changed files with 2 additions and 2 deletions

View File

@ -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);