Skip to content

Commit b339195

Browse files
committed
./gradlew spotlessApply
1 parent bf02f73 commit b339195

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

instrumentation/spring/spring-web/spring-web-3.1/library/src/main/java/io/opentelemetry/instrumentation/spring/web/v3_1/SpringWebHttpAttributesGetter.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public Integer getServerPort(HttpRequest httpRequest) {
109109
return httpRequest.getURI().getPort();
110110
}
111111

112-
private static final String URI_TEMPLATE_ATTRIBUTE = "org.springframework.web.client.RestClient.uriTemplate";
112+
private static final String URI_TEMPLATE_ATTRIBUTE =
113+
"org.springframework.web.client.RestClient.uriTemplate";
113114
@Nullable private static final MethodHandle GET_ATTRIBUTES;
114115

115116
static {
@@ -127,9 +128,7 @@ public Integer getServerPort(HttpRequest httpRequest) {
127128
try {
128129
getAttributes =
129130
lookup.findVirtual(
130-
httpRequestClass,
131-
"getAttributes",
132-
MethodType.methodType(java.util.Map.class));
131+
httpRequestClass, "getAttributes", MethodType.methodType(java.util.Map.class));
133132
} catch (NoSuchMethodException | IllegalAccessException ignored) {
134133
// ignored
135134
}

instrumentation/spring/spring-webflux/spring-webflux-5.3/library/src/main/java/io/opentelemetry/instrumentation/spring/webflux/v5_3/internal/WebClientHttpAttributesGetter.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public enum WebClientHttpAttributesGetter
2424
implements HttpClientExperimentalAttributesGetter<ClientRequest, ClientResponse> {
2525
INSTANCE;
2626

27-
2827
private static final String URI_TEMPLATE_ATTRIBUTE = WebClient.class.getName() + ".uriTemplate";
2928
private static final Pattern PATTERN_BEFORE_PATH = Pattern.compile("^https?://[^/]+/");
3029

@@ -91,6 +90,4 @@ public String getErrorType(
9190
}
9291
return null;
9392
}
94-
95-
9693
}

0 commit comments

Comments
 (0)