Package-level declarations

Types

Link copied to clipboard

Authentication and per-caller rate limiting for the embedded servers this SDK ships.

Link copied to clipboard
fun interface HostAuthenticator

Decides whether one call may proceed. Return true to admit it.

Link copied to clipboard

Fixed labels only: request paths, identities, tokens and exception text never enter telemetry.

Link copied to clipboard
class HostObservability @JvmOverloads constructor(val telemetry: HostTelemetry = HostTelemetry(), metricsBearerToken: String? = null, trustRemoteParent: Boolean = false, pool: DataSource? = null, library: LibraryTelemetry? = null)

Explicit host configuration: metrics are absent unless a secret is provided. Remote trace parents are ignored unless the host explicitly trusts its ingress. Baggage is never extracted. Use TLS or a protected loopback proxy; bearer authentication does not encrypt the connection.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
class LibraryTelemetry @JvmOverloads constructor(openTelemetry: OpenTelemetry = OpenTelemetry.noop(), emitSpans: Boolean = true) : TelemetrySink

Bridges library events onto the host's OpenTelemetry and Prometheus surfaces.

Link copied to clipboard

Bounds the size of request bodies on the embedded servers.

Properties

Link copied to clipboard
val HostRequestId: AttributeKey<String>