Browse Source

Merge branch 'master' into 2.0.x

pull/6/head
Spencer Gibb 7 years ago
parent
commit
23ebd6ac08
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 2
      spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/metrics/RestTemplateUrlTemplateCapturingAspect.java

2
spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/metrics/RestTemplateUrlTemplateCapturingAspect.java

@ -26,7 +26,7 @@ import org.aspectj.lang.annotation.Aspect; @@ -26,7 +26,7 @@ import org.aspectj.lang.annotation.Aspect;
@Aspect
public class RestTemplateUrlTemplateCapturingAspect {
@Around("execution(* org.springframework.web.client.RestOperations+.*(String, ..))")
Object captureUrlTemplate(ProceedingJoinPoint joinPoint) throws Throwable {
public Object captureUrlTemplate(ProceedingJoinPoint joinPoint) throws Throwable {
try {
String urlTemplate = (String) joinPoint.getArgs()[0];
RestTemplateUrlTemplateHolder.setRestTemplateUrlTemplate(urlTemplate);

Loading…
Cancel
Save