Skip to content

Commit

Permalink
errorprone
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Rzeszutek committed Mar 8, 2022
1 parent a6f5ac8 commit a44bcbf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,6 @@ public static <REQUEST, RESPONSE> HttpClientAttributesExtractor<REQUEST, RESPONS
return builder(getter).build();
}

/**
* Returns a new {@link HttpClientAttributesExtractorBuilder} that can be used to configure the
* HTTP client attributes extractor.
*/
public static <REQUEST, RESPONSE> HttpClientAttributesExtractorBuilder<REQUEST, RESPONSE> builder(
HttpClientAttributesGetter<REQUEST, RESPONSE> getter) {
return new HttpClientAttributesExtractorBuilder<>(getter);
}

/**
* Creates the HTTP client attributes extractor.
*
Expand All @@ -52,6 +43,15 @@ public static <REQUEST, RESPONSE> HttpClientAttributesExtractor<REQUEST, RESPONS
return builder(getter).captureHttpHeaders(capturedHttpHeaders).build();
}

/**
* Returns a new {@link HttpClientAttributesExtractorBuilder} that can be used to configure the
* HTTP client attributes extractor.
*/
public static <REQUEST, RESPONSE> HttpClientAttributesExtractorBuilder<REQUEST, RESPONSE> builder(
HttpClientAttributesGetter<REQUEST, RESPONSE> getter) {
return new HttpClientAttributesExtractorBuilder<>(getter);
}

HttpClientAttributesExtractor(
HttpClientAttributesGetter<REQUEST, RESPONSE> getter,
CapturedHttpHeaders capturedHttpHeaders) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ public static <REQUEST, RESPONSE> HttpServerAttributesExtractor<REQUEST, RESPONS
return builder(getter).build();
}

/**
* Returns a new {@link HttpServerAttributesExtractorBuilder} that can be used to configure the
* HTTP client attributes extractor.
*/
public static <REQUEST, RESPONSE> HttpServerAttributesExtractorBuilder<REQUEST, RESPONSE> builder(
HttpServerAttributesGetter<REQUEST, RESPONSE> getter) {
return new HttpServerAttributesExtractorBuilder<>(getter);
}

/**
* Creates the HTTP server attributes extractor.
*
Expand All @@ -58,6 +49,15 @@ public static <REQUEST, RESPONSE> HttpServerAttributesExtractor<REQUEST, RESPONS
return builder(getter).captureHttpHeaders(capturedHttpHeaders).build();
}

/**
* Returns a new {@link HttpServerAttributesExtractorBuilder} that can be used to configure the
* HTTP client attributes extractor.
*/
public static <REQUEST, RESPONSE> HttpServerAttributesExtractorBuilder<REQUEST, RESPONSE> builder(
HttpServerAttributesGetter<REQUEST, RESPONSE> getter) {
return new HttpServerAttributesExtractorBuilder<>(getter);
}

private final Function<Context, String> httpRouteHolderGetter;

HttpServerAttributesExtractor(
Expand Down

0 comments on commit a44bcbf

Please sign in to comment.