Skip to content

Commit

Permalink
Polish gh-4756
Browse files Browse the repository at this point in the history
  • Loading branch information
izeye authored and shakuzen committed May 13, 2024
1 parent 394cb20 commit bf6d2fe
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions micrometer-jetty12/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ dependencies {
testImplementation project(":micrometer-test")

testImplementation libs.httpcomponents.client

testImplementation libs.junitJupiter
testImplementation libs.assertj
testImplementation libs.wiremock
}

java {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
public class DefaultJettyClientObservationConvention implements JettyClientObservationConvention {

public static DefaultJettyClientObservationConvention INSTANCE = new DefaultJettyClientObservationConvention();
public static final DefaultJettyClientObservationConvention INSTANCE = new DefaultJettyClientObservationConvention();

@Override
public KeyValues getLowCardinalityKeyValues(JettyClientContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public static Tag method(Request request) {
* {@code request}.
* @param request the request
* @return the host tag derived from request
* @since 1.7.0
*/
public static Tag host(Request request) {
return (request != null) ? Tag.of("host", request.getHost()) : HOST_UNKNOWN;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2022 VMware, Inc.
* Copyright 2024 VMware, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ public void lifeCycleStopped(LifeCycle event) {
});

httpClient.start();

}

protected void addInstrumentingListener() {
Expand Down

0 comments on commit bf6d2fe

Please sign in to comment.