This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/apache-httpclient-5.2.md.

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

MetricInstrumentTypeUnitDescription
http.client.request.durationhistogramHISTOGRAMsDuration of HTTP client requests.
MetricAttributes
http.client.request.durationhttp.request.method (STRING), http.response.status_code (LONG), network.protocol.version (STRING), server.address (STRING), server.port (LONG)

Spans

Span kindAttributes
CLIENTerror.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)

Data

  • JSON (latest): /data/javaagent/instrumentations/apache-httpclient-5.2/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/apache-httpclient-5.2/apache-httpclient-5.2-7e8fa2c263b4.json
  • Explore: /java-agent/instrumentation/apache-httpclient-5.2