Skip to content

Commit

Permalink
ratpack
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger committed Jun 21, 2024
1 parent 23f453a commit dcaa981
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ public final class RatpackTelemetryBuilder {
* Adds an additional {@link AttributesExtractor} to invoke to set attributes to instrumented
* items. The {@link AttributesExtractor} will be executed after all default extractors.
*/
@SuppressWarnings({"unchecked", "rawtypes"})
@CanIgnoreReturnValue
public RatpackTelemetryBuilder addAttributeExtractor(
AttributesExtractor<? super Request, ? super Response> attributesExtractor) {
clientBuilder.addAttributeExtractor((AttributesExtractor) attributesExtractor);
serverBuilder.addAttributesExtractor((AttributesExtractor) attributesExtractor);
serverBuilder.addAttributesExtractor(attributesExtractor);
return this;
}

Expand Down

0 comments on commit dcaa981

Please sign in to comment.