INI Settings

This is the configuration list supported in php.ini.

Configuration ItemDescriptionDefault Value
skywalking_agent.enableEnable skywalking_agent extension or not.Off
skywalking_agent.log_fileLog file path./tmp/skywalking-agent.log
skywalking_agent.log_levelLog level: one of OFF, TRACE, DEBUG, INFO, WARN, ERROR.INFO
skywalking_agent.runtime_dirSkywalking agent runtime directory./tmp/skywalking-agent
skywalking_agent.server_addrAddress of skywalking oap server. Only available when reporter_type is grpc.127.0.0.1:11800
skywalking_agent.service_nameApplication service name.hello-skywalking
skywalking_agent.skywalking_versionSkywalking version, 8 or 9.8
skywalking_agent.authenticationSkywalking authentication token, let it empty if the backend isn't enabled. Only available when reporter_type is grpc.
skywalking_agent.worker_threadsSkywalking worker threads, 0 will auto set as the cpu core size.0
skywalking_agent.enable_tlsWether to enable tls for gPRC, default is false. Only available when reporter_type is grpc.Off
skywalking_agent.ssl_trusted_ca_pathThe gRPC SSL trusted ca file. Only available when reporter_type is grpc.
skywalking_agent.ssl_key_pathThe private key file. Enable mTLS when ssl_key_path and ssl_cert_chain_path exist. Only available when reporter_type is grpc.
skywalking_agent.ssl_cert_chain_pathThe certificate file. Enable mTLS when ssl_key_path and ssl_cert_chain_path exist. Only available when reporter_type is grpc.
skywalking_agent.heartbeat_periodAgent heartbeat report period. Unit, second.30
skywalking_agent.properties_report_period_factorThe agent sends the instance properties to the backend every heartbeat_period * properties_report_period_factor seconds.10
skywalking_agent.enable_zend_observerWhether to use zend observer instead of zend_execute_ex to hook the functions, this feature is only available for PHP8+.Off
skywalking_agent.reporter_typeReporter type, optional values are grpc and kafka.grpc
skywalking_agent.kafka_bootstrap_serversA list of host/port pairs to use for connect to the Kafka cluster. Only available when reporter_type is kafka.
skywalking_agent.kafka_producer_configConfigure Kafka Producer configuration in JSON format {"key": "value}. Only available when reporter_type is kafka.{}