HostTelemetry

class HostTelemetry @JvmOverloads constructor(openTelemetry: OpenTelemetry = OpenTelemetry.noop(), maxConcurrentRequests: Int = Int.MAX_VALUE, maxQueuedRequests: Int = 0, queueTimeoutMillis: Long = 1000)

Host-owned telemetry and optional admission control. No exporter or global SDK is installed. Queue timing starts at the application boundary; it does not measure the Netty socket queue. Pass a bounded asynchronous OpenTelemetry SDK to export spans. Close that SDK in the host.

Constructors

Link copied to clipboard
constructor(openTelemetry: OpenTelemetry = OpenTelemetry.noop(), maxConcurrentRequests: Int = Int.MAX_VALUE, maxQueuedRequests: Int = 0, queueTimeoutMillis: Long = 1000)

Functions

Link copied to clipboard

Wraps connection acquisition only; returned connections and their transaction semantics are unchanged.

Link copied to clipboard
suspend fun <T> phase(phase: HostPhase, block: suspend () -> T): T

Child spans preserve coroutine context without recording operation arguments or exception details.

Link copied to clipboard
fun prometheus(pool: DataSource? = null): String

Fixed-size snapshot. Optional Hikari state uses in-memory MXBean counters and never opens a connection.