HttpClientMetrics

class HttpClientMetrics(scope: String, val provider: <Error class: unknown class>)

Container for common HTTP engine related metrics. Engine implementations can re-use this and update the various fields in whatever manner fits best (increment/decrement vs current absolute value).

Parameters

scope

the instrumentation scope

provider

the telemetry provider to instrument with

Constructors

Link copied to clipboard
constructor(scope: String, provider: <Error class: unknown class>)

Properties

Link copied to clipboard

The number of acquired (active) connections used right now

Link copied to clipboard
val bytesReceived: <Error class: unknown class>
Link copied to clipboard
val bytesSent: <Error class: unknown class>
Link copied to clipboard
val connectionAcquireDuration: <Error class: unknown class>

The amount of time it takes to acquire a connection from the pool

Link copied to clipboard

The maximum number of connections configured for the client

Link copied to clipboard
val connectionUptime: <Error class: unknown class>

The amount of time a connection has been open

Link copied to clipboard

The number of idle (warm) connections in the pool right now

Link copied to clipboard

The number of requests currently in-flight (actively processing)

Link copied to clipboard
val provider: <Error class: unknown class>
Link copied to clipboard

The number of requests currently queued waiting to be dispatched/executed by the client

Link copied to clipboard

The maximum number of concurrent requests configured for the client

Link copied to clipboard
val requestsQueuedDuration: <Error class: unknown class>

The amount of time a request spent queued waiting to be executed by the HTTP client

Link copied to clipboard
val timeToFirstByteDuration: <Error class: unknown class>

Functions

Link copied to clipboard
open fun close()