Agent Grpc Service
internal class AgentGrpcService(val agent: Agent, options: AgentOptions, inProcessServerName: String)(source)
gRPC client that manages the agent's connection to the proxy.
Handles the full gRPC lifecycle: channel and stub creation, TLS configuration, agent registration, path registration/unregistration, heartbeat sending, and bidirectional scrape request/response streaming (including chunked transfers for large payloads). Supports reconnection by resetting stubs and channels on demand.
Parameters
agent
the parent Agent instance
options
agent configuration options (proxy hostname, keepalive, TLS, etc.)
in Process Server Name
the in-process server name (empty for Netty mode)
See also
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun readRequestsFromProxy(agentHttpService: AgentHttpService, connectionContext: AgentConnectionContext)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun writeResponsesToProxyUntilDisconnected(agent: Agent, connectionContext: AgentConnectionContext)