Skip to content

Commit fc23e4e

Browse files
Merge branch '1.8.x' into 1.9.x
2 parents 59463eb + 2598bbc commit fc23e4e

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

micrometer-core/src/main/java/io/micrometer/core/instrument/distribution/TimeWindowPercentileHistogram.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
import java.io.PrintStream;
2323

2424
/**
25+
* <b>NOTE: This class is intended for internal use as an implementation detail. You
26+
* should not compile against its API. Please contact the project maintainers if you need
27+
* this as public API.</b>
28+
* <p>
2529
* A histogram implementation that supports the computation of percentiles by Micrometer
2630
* for publishing to a monitoring system.
2731
*

micrometer-test/src/main/java/io/micrometer/core/instrument/HttpClientTimingInstrumentationVerificationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* to receive real requests from an instrumented HTTP client.
3838
*/
3939
@WireMockTest
40-
@Incubating(since = "1.9.2")
40+
@Incubating(since = "1.8.8")
4141
public abstract class HttpClientTimingInstrumentationVerificationTests extends InstrumentationVerificationTests {
4242

4343
/**

micrometer-test/src/main/java/io/micrometer/core/instrument/InstrumentationVerificationTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ abstract class InstrumentationVerificationTests {
2121

2222
private final MeterRegistry registry = new SimpleMeterRegistry();
2323

24+
/**
25+
* {@link MeterRegistry} to use for instrumentation verification tests.
26+
* @return registry to use
27+
*/
2428
protected MeterRegistry getRegistry() {
2529
return registry;
2630
}

micrometer-test/src/test/java/io/micrometer/core/instrument/JettyClientTimingInstrumentationVerificationTests.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
class JettyClientTimingInstrumentationVerificationTests extends HttpClientTimingInstrumentationVerificationTests {
2828

29+
private static final String HEADER_URI_PATTERN = "URI_PATTERN";
30+
2931
private final HttpClient httpClient = new HttpClient();
3032

3133
@Override
@@ -36,7 +38,7 @@ protected String timerName() {
3638
@BeforeEach
3739
void setup() throws Exception {
3840
httpClient.getRequestListeners().add(JettyClientMetrics
39-
.builder(getRegistry(), result -> result.getRequest().getHeaders().get("URI_PATTERN")).build());
41+
.builder(getRegistry(), result -> result.getRequest().getHeaders().get(HEADER_URI_PATTERN)).build());
4042
httpClient.start();
4143
}
4244

@@ -45,7 +47,7 @@ protected void sendHttpRequest(HttpMethod method, @Nullable byte[] body, URI bas
4547
String... pathVariables) {
4648
try {
4749
Request request = httpClient.newRequest(baseUri + substitutePathVariables(templatedPath, pathVariables))
48-
.method(method.name()).header("URI_PATTERN", templatedPath);
50+
.method(method.name()).header(HEADER_URI_PATTERN, templatedPath);
4951
if (body != null) {
5052
request.content(new BytesContentProvider(body));
5153
}

0 commit comments

Comments
 (0)