aws_xray_sdk.core.daemon_config

Module Contents

DAEMON_ADDRESS_KEY = AWS_XRAY_DAEMON_ADDRESS
DEFAULT_ADDRESS = 127.0.0.1:2000
class DaemonConfig(daemon_address=DEFAULT_ADDRESS)

Bases:object

The class that stores X-Ray daemon configuration about the ip address and port for UDP and TCP port. It gets the address string from AWS_TRACING_DAEMON_ADDRESS and then from recorder’s configuration for daemon_address. A notation of ‘127.0.0.1:2000’ or ‘tcp:127.0.0.1:2000 udp:127.0.0.2:2001’ are both acceptable. The former one means UDP and TCP are running at the same address. By default it assumes a X-Ray daemon running at 127.0.0.1:2000 listening to both UDP and TCP traffic.

udp_ip
udp_port
tcp_ip
tcp_port
_parse_single_form(self, val)
_parse_double_form(self, val1, val2, origin)