Agent

constructor(options: AgentOptions, inProcessServerName: String = "", testMode: Boolean = false, initBlock: Agent.() -> Unit? = null)(source)

Parameters

options

Configuration options for the agent, typically loaded from command line or config files

inProcessServerName

Optional in-process server name for testing scenarios. When specified, the agent will connect to an in-process gRPC server instead of a network server.

testMode

Whether to run in test mode. Test mode may disable certain features or use different defaults suitable for testing environments.

initBlock

Optional initialization block executed after construction but before startup. Useful for custom configuration or testing setup.