diff --git a/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/OperationNameProvider.java b/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/OperationNameProvider.java index 42c12e0..26e08a6 100644 --- a/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/OperationNameProvider.java +++ b/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/OperationNameProvider.java @@ -55,12 +55,12 @@ public OperationNameProvider build(Class clazz, Method method) { private String classMethod; ClassNameOperationName(Class clazz, Method method) { - this.classMethod = String.format("%s.%s", clazz.getName() , method.getName()); + this.classMethod = clazz.getName() + "." + method.getName(); } @Override public String operationName(ContainerRequestContext requestContext) { - return String.format("%s:%s", requestContext.getMethod(), classMethod); + return requestContext.getMethod() + ":" + classMethod; } public static Builder newBuilder() {