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 5b96b05 commit 92f2e3aCopy full SHA for 92f2e3a
reporters/kamon-apm-reporter/src/main/scala/kamon/apm/ApiClient.scala
@@ -73,6 +73,10 @@ class ApiClient(settings: Settings) {
73
74
tryPosting match {
75
case Success(response) =>
76
+ // The response body must be closed (even if there is no body in the response),
77
+ // otherwise OkHttp leaks connections.
78
+ response.body().close()
79
+
80
response.code() match {
81
case 200 =>
82
_logger.trace("Request to the Kamon APM [{}] endpoint succeeded", endpointName)
0 commit comments