Skip to content

Commit 2b8828f

Browse files
committed
spotless
1 parent ae719d5 commit 2b8828f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

instrumentation-api/src/main/java/io/opentelemetry/instrumentation/api/semconv/url/UrlAttributesGetter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ default String getUrlQuery(REQUEST request) {
5454
/**
5555
* Returns the template used to build the full URL (if available)
5656
*
57-
* <p>Examples: {@code /users/{id}}; {@code /users?q={query}}</p>
57+
* <p>Examples: {@code /users/{id}}; {@code /users?q={query}}
5858
*/
5959
@Nullable
6060
default String getUrlTemplate(REQUEST request) {

instrumentation-api/src/test/java/io/opentelemetry/instrumentation/api/semconv/http/HttpSpanNameExtractorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ void nothing() {
5151
void templateAndMethod() {
5252
when(clientGetter.getUrlTemplate(anyMap())).thenReturn("/cats/{id}");
5353
when(clientGetter.getHttpRequestMethod(anyMap())).thenReturn("GET");
54-
assertThat(HttpSpanNameExtractor.create(clientGetter).extract(Collections.emptyMap())).isEqualTo("GET /cats/{id}");
54+
assertThat(HttpSpanNameExtractor.create(clientGetter).extract(Collections.emptyMap()))
55+
.isEqualTo("GET /cats/{id}");
5556
}
5657
}

0 commit comments

Comments
 (0)