Skip to content

Commit

Permalink
Add missing @nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
mhalbritter committed Apr 25, 2022
1 parent 7b4ae10 commit 1f6a156
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import io.micrometer.common.util.StringUtils;
import io.micrometer.common.util.internal.logging.InternalLogger;
import io.micrometer.common.util.internal.logging.InternalLoggerFactory;
import io.micrometer.observation.lang.Nullable;
import io.micrometer.observation.transport.http.HttpServerRequest;
import io.micrometer.observation.transport.http.HttpServerResponse;
import io.micrometer.tracing.Span;
Expand Down Expand Up @@ -60,8 +61,8 @@ public class OtelHttpServerHandler implements HttpServerHandler {

private final Instrumenter<HttpServerRequest, HttpServerResponse> instrumenter;

public OtelHttpServerHandler(OpenTelemetry openTelemetry, HttpRequestParser httpServerRequestParser,
HttpResponseParser httpServerResponseParser, Pattern skipPattern,
public OtelHttpServerHandler(OpenTelemetry openTelemetry, @Nullable HttpRequestParser httpServerRequestParser,
@Nullable HttpResponseParser httpServerResponseParser, Pattern skipPattern,
HttpServerAttributesGetter<HttpServerRequest, HttpServerResponse> httpAttributesExtractor) {
this.httpServerRequestParser = httpServerRequestParser;
this.httpServerResponseParser = httpServerResponseParser;
Expand Down

0 comments on commit 1f6a156

Please sign in to comment.