We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38eebc5 commit 3f256a9Copy full SHA for 3f256a9
apm-agent-core/src/main/java/co/elastic/apm/report/ApmServerHealthChecker.java
@@ -40,10 +40,10 @@ class ApmServerHealthChecker implements Runnable {
40
@Override
41
public void run() {
42
boolean success;
43
- String message = null;
+ String message;
44
HttpURLConnection connection = null;
45
try {
46
- URL url = new URL(reporterConfiguration.getServerUrls().get(0).toString() + "/healthcheck");
+ URL url = new URL(reporterConfiguration.getServerUrls().get(0).toString() + "/");
47
if (logger.isDebugEnabled()) {
48
logger.debug("Starting healthcheck to {}", url);
49
}
@@ -81,7 +81,6 @@ public void run() {
81
} finally {
82
if (connection != null) {
83
connection.disconnect();
84
- connection = null;
85
86
87
0 commit comments