Skip to content

Commit dcaa981

Browse files
committed
ratpack
1 parent 23f453a commit dcaa981

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

instrumentation/ratpack/ratpack-1.7/library/src/main/java/io/opentelemetry/instrumentation/ratpack/v1_7/RatpackTelemetryBuilder.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,10 @@ public final class RatpackTelemetryBuilder {
4949
* Adds an additional {@link AttributesExtractor} to invoke to set attributes to instrumented
5050
* items. The {@link AttributesExtractor} will be executed after all default extractors.
5151
*/
52-
@SuppressWarnings({"unchecked", "rawtypes"})
5352
@CanIgnoreReturnValue
5453
public RatpackTelemetryBuilder addAttributeExtractor(
5554
AttributesExtractor<? super Request, ? super Response> attributesExtractor) {
56-
clientBuilder.addAttributeExtractor((AttributesExtractor) attributesExtractor);
57-
serverBuilder.addAttributesExtractor((AttributesExtractor) attributesExtractor);
55+
serverBuilder.addAttributesExtractor(attributesExtractor);
5856
return this;
5957
}
6058

0 commit comments

Comments
 (0)