Skip to content

collect HTTP client metrics #2809

Closed
@lucix-aws

Description

@lucix-aws

Emit HTTP-related metrics as part of service client operations.

This is the proposed list of values to track, though net/http/httptrace may limit what we can do in this SDK:

Metric Name Unit Type Description Attributes (Dimensions)
client.http.connections.acquire_duration s Histogram The time it takes a request to acquire a connection
client.http.connections.limit {connection} UpDownCounter The maximum open connections allowed/configured for the HTTP client
client.http.connections.usage {connection} UpDownCounter Current state of connections pool state: idle / acquired
client.http.connections.uptime s Histogram The amount of time a connection has been open
client.http.requests.usage {request} UpDownCounter The current state of HTTP client request concurrency state: queued / in-flight
client.http.requests.queued_duration s Histogram The amount of time a request spent queued waiting to be executed by the HTTP client
client.http.bytes_sent By MonotonicCounter The total number of bytes sent by the HTTP client server.address
client.http.bytes_received By MonotonicCounter The total number of bytes received by the HTTP client server.address

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.queuedThis issues is on the AWS team's backlog

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions