ProxyGrpcService

internal class ProxyGrpcService(proxy: Proxy, port: Int = -1, inProcessName: String = "") : GenericIdleService(source)

Manages the gRPC server lifecycle for the proxy.

Configures and runs the gRPC server that agents connect to for scrape request streaming. Handles TLS setup, server interceptors, transport filters, keepalive settings, and optional Zipkin tracing. Supports both Netty (network) and in-process transports.

Parameters

proxy

the parent Proxy instance

port

the gRPC listen port (-1 for in-process mode)

inProcessName

the in-process server name (empty for Netty mode)

See also

Constructors

Link copied to clipboard
constructor(proxy: Proxy, port: Int = -1, inProcessName: String = "")

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val healthCheck: HealthCheck
Link copied to clipboard

Functions

Link copied to clipboard
fun addListener(listener: Service.Listener, executor: Executor)
Link copied to clipboard
fun awaitRunning(timeout: Duration)
fun awaitRunning(timeout: Long, unit: TimeUnit)
Link copied to clipboard
fun awaitTerminated(timeout: Long, unit: TimeUnit)
Link copied to clipboard
Link copied to clipboard
@CanIgnoreReturnValue
fun startAsync(): Service
Link copied to clipboard
fun startSync(maxWait: Duration)
Link copied to clipboard
fun state(): Service.State
Link copied to clipboard
@CanIgnoreReturnValue
fun stopAsync(): Service
Link copied to clipboard
fun stopSync(maxWait: Duration)
Link copied to clipboard
open override fun toString(): String