Skip to content

Auto-configure observability features introduced in Apache HttpComponents 5.6 #48655

@dalbani

Description

@dalbani

From https://hc.apache.org/httpcomponents-client-5.6.x/observation.html:

Since 5.6, HttpClient ships an optional module, httpclient5-observation, that plugs straight into Micrometer (metrics + observations) and can bridge to OpenTelemetry (traces). The goal is simple: give you drop-in visibility of latency, throughput, I/O, connection-pool health, DNS, and TLS—without rewriting application code or coupling the core client to any monitoring stack.

https://github.com/apache/httpcomponents-client/tree/master/httpclient5-observation/src/test/java/org/apache/hc/client5/http/observation/example contains a couple of examples on how to use this feature.

This would be great if Spring Boot could somehow offer the ability to (easily) activate this functionality.
Preferably via a configuration property. Or at least document how to turn it on in a Spring Boot application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions