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
in Process Server Name
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.
test Mode
Whether to run in test mode. Test mode may disable certain features or use different defaults suitable for testing environments.
init Block
Optional initialization block executed after construction but before startup. Useful for custom configuration or testing setup.