Skip to content

Commit

Permalink
Added missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Sep 26, 2023
1 parent 68e8e20 commit 7df8b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions micrometer-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ dependencies {
testImplementation 'io.grpc:grpc-testing-proto'
testImplementation 'com.squareup.retrofit2:retrofit'
testImplementation 'org.jboss.resteasy:resteasy-netty4'
testImplementation 'javax.validation:validation-api'
}

task shenandoahTest(type: Test) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public void invoke(Request request, Response response) throws IOException, Servl
HttpJakartaServerServletRequestObservationContext context = new HttpJakartaServerServletRequestObservationContext(
request, response);
observation = JakartaHttpObservationDocumentation.JAKARTA_SERVLET_SERVER_OBSERVATION
.observation(this.observationConvention, DefaultHttpJakartaServerServletRequestObservationConvention.INSTANCE, () -> context,
.observation(this.observationConvention,
DefaultHttpJakartaServerServletRequestObservationConvention.INSTANCE, () -> context,
this.observationRegistry)
.start();
request.setAttribute(Observation.class.getName(), observation);
Expand Down

0 comments on commit 7df8b37

Please sign in to comment.