Apache HttpClient
OpenTelemetry Java agent instrumentation
This instrumentation provides a library integration that enables HTTP client spans and HTTP client metrics for the Apache HttpClient.
- Name:
apache-httpclient-5.2 - Scope:
io.opentelemetry.apache-httpclient-5.2 - Library: https://hc.apache.org/index.html
Telemetry
When default
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
http.client.request.duration | histogram | HISTOGRAM | s | Duration of HTTP client requests. |
| Metric | Attributes |
|---|---|
http.client.request.duration | http.request.method (STRING), http.response.status_code (LONG), network.protocol.version (STRING), server.address (STRING), server.port (LONG) |
Spans
| Span kind | Attributes |
|---|---|
| CLIENT | error.type (STRING), http.request.method (STRING), http.request.method_original (STRING), http.request.resend_count (LONG), http.response.status_code (LONG), network.protocol.version (STRING), server.address (STRING), server.port (LONG), url.full (STRING) |