question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apache HTTP client instrumentation

See original GitHub issue

It looks like there is already OkHttp instrumentation (which isn’t documented as far as I can tell). It would be nice if there were also instrumentation for the Apache HTTP client. This would help achieve HTTP client instrumentation in cases where people are using the HTTP client directly (instead of through RestTemplate in a Spring application) or for things like the Elasticsearch Java Low Level REST.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:19
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

11reactions
benhubertcommented, Dec 19, 2018

Would be great to also have metrics for monitoring the connection pools of the PoolingHttpClientConnectionManager.

When enabling DEBUG output for org.apache.http.impl.conn.PoolingHttpClientConnectionManager, you can see numbers such as this line in your log file: [total kept alive: 2; route allocated: 2 of 10; total allocated: 2 of 50]. It would be very helpful, if we could monitor these numbes using Micrometer/Prometheus.

8reactions
benhubertcommented, Jan 2, 2019

Just want to inform you, that we have a solution for monitoring the connection pools here at @willhaben. I’ll contribute it as soon as we tested it with one of our applications.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instrumenting Apache HttpClient - Dropwizard Metrics
InstrumentedHttpClients follows the HttpClients builder pattern and adds per-HTTP method timers for HTTP requests. Metric naming strategies. The default per- ...
Read more >
Apache HTTP Client Instrumentation | OpenTelemetry
This library provides a Apache HTTP Client instrumentation to track requests through OpenTelemetry.
Read more >
HttpClient Overview - Apache HttpComponents
Supports encryption with HTTPS (HTTP over SSL) protocol. Pluggable socket factories and TLS strategies. Transparent message exchanges through HTTP/1.1 and HTTP/ ...
Read more >
opentelemetry-apache-httpclient-4.3 : 1.5.2-alpha
Instrumentation of Java libraries using OpenTelemetry. Licenses. The Apache License, Version 2.0. Home page, https://github.com/open-telemetry/opentelemetry ...
Read more >
MicrometerHttpRequestExecutor (micrometer-core 1.2.0 API)
Use this method to create an instance of MicrometerHttpRequestExecutor . org.apache.http.HttpResponse, execute​(org.apache.http.HttpRequest request, org.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found